Skip to main content

A simple Django app to provide user signup, login, change & reset password

Project description

===== DJANGO EASY CUSTOM AUTH

django easy custom auth is a simple Django app to provide all user related funtionalities. User signup, login, logout, change password, forgot password all is set with all templates. You can customize templates easily by putting their path in your settings file.

Detailed documentation is in the "docs" directory.

Quick start

  1. Add "django_easy_custom_auth" to your INSTALLED_APPS setting like this::

    INSTALLED_APPS = [ ... 'customauth', ]

  2. Define the login, logout and login_redirect url in your project settings.py like this::

    LOGIN_URL = '/ca/login/' LOGIN_REDIRECT_URL = '/ca/' LOGOUT_REDIRECT_URL = LOGIN_URL

  3. Include the custom_auth URLconf in your project urls.py like this::

    path('ca/', include('customauth.urls')),

  4. Run python manage.py migrate to create the user model if already not done.

  5. Start the development server and visit http://127.0.0.1:8000/ca/ to signup.

Override templates

Define the templates path as below. change the customauth with your app name, if you have put templates in your app or define path accordingly.

# custom auth settings
SIGNUP_HTML = 'customauth/signup.html'
LOGIN_HTML = 'customauth/login.html'
CHANGE_PASSWORD_FORM_HTML = 'customauth/change_password_form.html'
PASSWORD_RESET_COMPLETE_HTML = 'customauth/password_reset_complete.html'
PASSWORD_RESET_CONFIRM_HTML = 'customauth/password_reset_confirm.html'
PASSWORD_RESET_DONE_HTML = 'customauth/password_reset_done.html'
PASSWORD_RESET_EMAIL_HTML = 'customauth/password_reset_email.html'
PASSWORD_RESET_FORM_HTML = 'customauth/password_reset_form.html'
PASSWORD_RESET_SUBJECT_TXT = 'customauth/password_reset_subject.txt'

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-easy-custom-auth-0.5.tar.gz (8.3 kB view details)

Uploaded Source

File details

Details for the file django-easy-custom-auth-0.5.tar.gz.

File metadata

  • Download URL: django-easy-custom-auth-0.5.tar.gz
  • Upload date:
  • Size: 8.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

File hashes

Hashes for django-easy-custom-auth-0.5.tar.gz
Algorithm Hash digest
SHA256 fd8beefa2134f59c5cf870aa33aa02668b9dca2fc0e4f71039808e4fb7016404
MD5 6a89ebd5e2968bcb25ddd826cf7e0637
BLAKE2b-256 1e68d0b2a945f95f934a47f610d3c70a9c64f63947b5c1da8340ebd794a4180f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page