Skip to main content

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

  1. To install from PyPi:

    pip install django-user-login-register-activate
  2. Add “login” to your INSTALLED_APPS setting like this:

    INSTALLED_APPS = [
        ...
        'login',
    ]
  3. 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"
  4. 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')),
    ]
  5. 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

django-user-login-register-activate-2.3.tar.gz (732.8 kB view details)

Uploaded Source

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

Hashes for django-user-login-register-activate-2.3.tar.gz
Algorithm Hash digest
SHA256 62bbcd373ace744ab5b6ccb127b2da2b91c048a2f57c21be2e12b8dfd672dc6d
MD5 12cd629437c214427539e4909ba7f771
BLAKE2b-256 7a72832f635dbf3b1ee3c58f969aca5bdafda65e65b1e7fd51cc6c70434686c8

See more details on using hashes here.

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

Hashes for django_user_login_register_activate-2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 fa1785138713a821c68b4ae79401d1fd911e9ae931f124461ba83955390d834a
MD5 16c013530257b15ea4f839bc67590c05
BLAKE2b-256 dfc57fe4b5048e0b5007e52fd5b44d15afed79e592f42b755c5599a1ea58d285

See more details on using hashes here.

Supported by

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