A Django app to signup, activation, login and logout.
Project description
django-user-login-register-activate is a django app to make user login and registration
Quick start
To install from PyPi:
pip install django-user-login-register-activate
Add “login” to your INSTALLED_APPS setting like this:
INSTALLED_APPS = [ ... 'login', ]
Add Email setting like this:
EMAIL_HOST = "smtp.163.com" EMAIL_PORT = 25 EMAIL_HOST_USER = "your_email_name@163.com" EMAIL_HOST_PASSWORD = "your_email_host_password"
Include the login URLconf in your project urls.py like this:
from django.contrib import admin from django.urls import path, include urlpatterns = [ ... path('accounts/', include('login.urls')), ]
Your can use this project like this:
from django.contrib.auth.decorators import login_required @login_required def index(request): return HttpResponse("Hello World.")
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
Built Distribution
File details
Details for the file django-user-login-register-activate-2.3.tar.gz
.
File metadata
- Download URL: django-user-login-register-activate-2.3.tar.gz
- Upload date:
- Size: 732.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 62bbcd373ace744ab5b6ccb127b2da2b91c048a2f57c21be2e12b8dfd672dc6d |
|
MD5 | 12cd629437c214427539e4909ba7f771 |
|
BLAKE2b-256 | 7a72832f635dbf3b1ee3c58f969aca5bdafda65e65b1e7fd51cc6c70434686c8 |
File details
Details for the file django_user_login_register_activate-2.3-py3-none-any.whl
.
File metadata
- Download URL: django_user_login_register_activate-2.3-py3-none-any.whl
- Upload date:
- Size: 750.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa1785138713a821c68b4ae79401d1fd911e9ae931f124461ba83955390d834a |
|
MD5 | 16c013530257b15ea4f839bc67590c05 |
|
BLAKE2b-256 | dfc57fe4b5048e0b5007e52fd5b44d15afed79e592f42b755c5599a1ea58d285 |