A django user authentication and login application.
Reason this release was yanked:
faulty
Project description
Authentication
A django user authentication and login application.
01. To install and use the package, use:
pip install django-user-login
Instructions
02. Add "authentication" to your INSTALLED_APPS setting like this:
INSTALLED_APPS = [
...
'authentication',
]
03. Include the authentication URLconf in your project urls.py like this:
path('authentication/', include('authentication.urls')),
04. Run python manage.py migrate
to create the User
model (you'll need the Admin app enabled).
05. The App requires Django Sessions
06. In your settings.py file include the following:
SITE_TITLE = 'site-title' # title of your site
LOGIN_URL = '/authentication/'
EMAIL_HOST = 'email-host' # e.g. 'smtp-mail.outlook.com'
EMAIL_PORT = email-port # e.g. 587
EMAIL_HOST_USER = 'email-address'
EMAIL_HOST_PASSWORD = 'email password'
EMAIL_USE_TLS = True
AUTHENTICATION_DEBUG = Boolean # True or False (use False in production)
VERIFICATION_CODE_VALIDITY_IN_MINUTES = Integer # int in the range of [1, 60] only
07. For login and logout functionality, use -
-
To Login, use anyone one of these
- <a href="{% url 'authentication:login' %}">Login</a> - <a href='/authentication/'>Login</a>
-
To Logout, use anyone one of these
- <a href="{% url 'authentication:logout' %}">Logout</a> - <a href="/authentication/logout/">Logout</a>
-
To visit My Account page and edit profile credentials, use any one of these -
- <a href="{% url 'authentication:account' %}">Account</a> - <a href="/authentication/account/">Account</a>
08. When AUTHENTICATION_DEBUG = TRUE
- Live EMAILS will not be sent and verification codes / messages, if any, will be displayed in the terminal.
- No password validation will happen.
09. When a user closes their account, the app will not delete the User
but set is_active
to False
(see: User Model) and set_unusable_password()
(see: Methods).
10. Check Demo Website
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
django-user-login-0.3.3.tar.gz
(20.1 kB
view details)
Built Distribution
File details
Details for the file django-user-login-0.3.3.tar.gz
.
File metadata
- Download URL: django-user-login-0.3.3.tar.gz
- Upload date:
- Size: 20.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 843845e41bd38b40580e89f8dc009c4fbf3f183afd403740f18daa239c5c7095 |
|
MD5 | ea498e0fb9173fbe05ffb7b55888bfbe |
|
BLAKE2b-256 | c2b7abbc2ec908a0cf7512d95c72cd1e8b064d1ec1ec9a4fd2303d7f678e0ed3 |
File details
Details for the file django_user_login-0.3.3-py3-none-any.whl
.
File metadata
- Download URL: django_user_login-0.3.3-py3-none-any.whl
- Upload date:
- Size: 28.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c3e994bdd4556c47a3f06ef3c821a1930e7e23fd3470cdec65a5e002204355f8 |
|
MD5 | 14ba56f0530098f61f85b52ddc1b295b |
|
BLAKE2b-256 | a5cefdd596ee99b66b40cb89525bfcd74e3c48b07e9659ac36fe8397a63877f1 |