vigzmv / Django-Users-Boilerplate

:snake: A Django boilerplate with User Registeration, Login and Password change views. Uses django.auth

Home Page:http://vigneshm.com/Django-Users-Boilerplate/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

:snake: A Django boilerplate with User Registeration, Login and Password change views. Uses django.auth

http://vigneshm.com/Django-Users-Boilerplate/

License:MIT License


Languages

Language:HTML 56.4%Language:Python 43.0%Language:CSS 0.4%Language:JavaScript 0.1%