A Django authentication app to save your times.
Project description
===== Cleverange Auth App
Cleverange Auth is a Django app to managing authenticated systems.
Quick start
-
Add "accounts" to your INSTALLED_APPS setting like this::
INSTALLED_APPS = [
... 'accounts',
]
-
Include the accounts URLconf in your project urls.py like this::
path('accounts/', include('accounts.urls')),
-
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']
``
-
Include the "LOGIN_REDIRECT_PATH" (to redirect user after login) in your project settings.py like this.
LOGIN_REDIRECT_PATH = '/'
-
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'
``
-
Run
python manage.py migrate
to create the accounts models. -
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for cleverange_auth-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9fb9855882dac023dda41c23269c9651b50ac84dec517ef2b70f0a7fda2a7090 |
|
MD5 | faa035faf81897d64e62e9f3f672aea6 |
|
BLAKE2b-256 | c128a0e539631e4d3179556006e4babbb7a6d9e75cfc8f6899cbfd7a30cab3d4 |