Skip to main content

A Django authentication app to save your times.

Project description

Cleverange Auth

Cleverange Auth is a Django app to managing authenticated systems.

Quick start

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

    INSTALLED_APPS = [

     ...
     'accounts',
    

    ]

  2. Include the accounts URLconf in your project urls.py like this::

    path('accounts/', include('accounts.urls')),

  3. Include the "AUTH_USER_MODEL" and "AUTHENTICATION_BACKENDS" in your project settings.py like this::

    AUTH_USER_MODEL = 'accounts.User'

    AUTHENTICATION_BACKENDS = ['accounts.backends.EmailOrUsernameBackend']

  4. Include the "LOGIN_REDIRECT_PATH" (to redirect user after login) in your project settings.py like this.

    LOGIN_REDIRECT_PATH = '/'

  5. Include the EMAIL access (to send verification mail) in your project settings.py like this.

    EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'

    EMAIL_HOST = 'smtp.gmail.com'

    EMAIL_USE_TLS = True

    EMAIL_PORT = 587

    EMAIL_HOST_USER = 'your_email_address@gmail.com'

    EMAIL_HOST_PASSWORD = 'your_app_password'

  6. Run python manage.py migrate to create the accounts models.

  7. Start the development server and visit to your endpoint.

    http://127.0.0.1:8000/accounts/register/

    http://127.0.0.1:8000/accounts/login/

THANK YOU FOR USING OUR APP.

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

cleverange-auth-0.1.10.tar.gz (12.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cleverange_auth-0.1.10-py3-none-any.whl (17.8 kB view details)

Uploaded Python 3

File details

Details for the file cleverange-auth-0.1.10.tar.gz.

File metadata

  • Download URL: cleverange-auth-0.1.10.tar.gz
  • Upload date:
  • Size: 12.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.5

File hashes

Hashes for cleverange-auth-0.1.10.tar.gz
Algorithm Hash digest
SHA256 67f6a3a3b498a68f94cb6015aa0452666a6901f24c725a2016018f7b8159fbf8
MD5 5e03c1ee88a68b13dcc5f1b47641ab65
BLAKE2b-256 32ce702b5ba5b376e7fa27455cb5337839fb480995123ca4ac364402e98de038

See more details on using hashes here.

File details

Details for the file cleverange_auth-0.1.10-py3-none-any.whl.

File metadata

  • Download URL: cleverange_auth-0.1.10-py3-none-any.whl
  • Upload date:
  • Size: 17.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.5

File hashes

Hashes for cleverange_auth-0.1.10-py3-none-any.whl
Algorithm Hash digest
SHA256 2664773e6daeabb4f22fe64b4e5bf014d251c146ba52ae78fd3edcdab24e8461
MD5 6cb4f14aa29ee418878f63dbb3929c2e
BLAKE2b-256 caec5e214cca779db28fc6fe3d44bf0a3433fb708653cd8b574b38805ea99b03

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