Skip to content

Latest commit

 

History

History
56 lines (41 loc) · 1.63 KB

README.md

File metadata and controls

56 lines (41 loc) · 1.63 KB

Django Users Boilerplate

Open Source Love    license    contributions welcome

A Django boilerplate with User Registeration, Login and Password change views.

This boilerplate can be used to create Django projects with user management quicker.

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