Django Users Boilerplate
A Django boilerplate with User Registeration, Login and Password change views.
This boilerplate can be used to create Django projects with user management quicker. Uses Django Auth for the User Authentications.
Made by vigzmv
Usage
# Get project locally
$ git clone https://github.com/vigzmv/Django-Users-boilerplate.git
# Rename directory
$ mv Django-Users-boilerplate **Your_project_dir_name**
$ cd **Your_project_dir_name**
# Install requirements
$ pip install -r requirements.txt
# Runserver
$ python manage.py runserver
# Done! Make required changes in 'App' as required to create your Django App.
Customisation
User registration fields
The fields of User object can be changed by editing the required 'fields' in App/forms.py.
class UserSignUpForm(forms.ModelForm):
class Meta:
model = User
# change fields of User Object here
fields = ('username','password','email','first_name','last_name',)
help_texts = {
'username': None,
}
widgets = {
'password':forms.PasswordInput(),
}
Refer Docs: https://docs.djangoproject.com/en/1.10/ref/contrib/auth/
Also included
- bootstrap-v3.3.6-min.css
- bootstrap-v3.3.6-min.js
- jquery-v2.2.0.min.js