Skip to main content

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.")

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.4.tar.gz (732.8 kB view details)

Uploaded Source

Built Distribution

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

File details

Details for the file django-user-login-register-activate-2.4.tar.gz.

File metadata

  • Download URL: django-user-login-register-activate-2.4.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.4.tar.gz
Algorithm Hash digest
SHA256 5cdfbe0875641c525dd3dd84e45ec99f30004e9c10e157859337f89da8ef192e
MD5 323c2e6b1dd6ad172e5147ca0b180072
BLAKE2b-256 179beb02bd59062c3331ae44dff5f903536a376c4abf082f431993236b5a4c90

See more details on using hashes here.

File details

Details for the file django_user_login_register_activate-2.4-py3-none-any.whl.

File metadata

  • Download URL: django_user_login_register_activate-2.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 5c245d82f7afce769cefb7b197663d662c1088aee163237c2752710f011fd905
MD5 b17ac565990be168825ffced4bce5cef
BLAKE2b-256 7f7103ed92e0ce8bf64c7b694c2f3f3f7ffdb84bf364d7cc298fa3bcc63d35d8

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

2.4 This release

2 files

2.3

2 files

2.2

2 files

2.1

2 files

2.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page