Use Django-registration with Django project

1. Donwload django-registration

2. un-tar the file and copy the regostration folder into your django project as an app

3. set up the settings.py by adding the 'registration' into the INSTALLED_APPS = ()

4. also adding the followings to the settings.py file:
  • ACCOUNT_ACTIVATION_DAYS = 7
  • EMAIL_HOST = 'localhost'
  • DEFAULT_FROM_EMAIL = 'WEBMASTER@LOCALHOST'
  • LOGIN_REDIRECT_URL = '/'
4. mkdir /project_root/templates/registration/

5. copy templates files into the registration folder made in  step 4. You can download the templates files hereat https://github.com/vladimir-webdev/django-registration-templates



Has not finished yet....

No comments:

Post a Comment

Datatable static image not found on the server

When you use ```datatables.min.css``` and ```datatables.min.js``` locally, instead of datatables CDN, you may have encountered that ```sort...