GithubHelp home page GithubHelp logo

user_registration's Introduction

User Registration

It is the process of creating user account in any website or application where the application collecting the user details

Django Provides secure authentication system to handle user realted functionality

User registration process in DJango

User Model: Django comes with a built-in User model (django.contrib.auth.models.User) that includes fields like username, email, and password. In modern Django versions (after 1.11), it's recommended to use the AbstractUser model for customizing user models.

so you no need to create a model which is responsible to define username, pswd, email. While creating the the form for User model you need to specify the fields in fields list in order to make more specific as built-in user model contains more no.of fields.

if your form is taking image files or any kind of files then you need to create a directory for storing that collected files i.e media(directory in outer project folder

and need to specify MEDIA_ROOT variable externally for storing path of media directory

STATIC_ROOT :

In settings Django by default specifies that STATIC_ROOT= 'static/' Is a directory where Django should collect all the satic files of various applications into a single location

MEDIA_ROOT :

In settings, you need to define MEDIA_ROOT variable like MEDIA_ROOT='media/' Is a directory where media files are connected.

Collect submitted Data and then modify password field to make it need to be as encrypt and then save

Here in the template, along with the method attribute, you have to specify enctype='multipart/form-data'

user_registration's People

Contributors

pavithrabusipalli avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.