Skip to main content

A django user authentication and login application.

Reason this release was yanked:

removed saas files

Project description

Authentication

A django user authentication and login application.

1. To install and use the package, use:

    pip install django-user-login

Instructions

2. Add "authentication" to your INSTALLED_APPS setting like this:

    INSTALLED_APPS = [
        ...
        'authentication',
    ]

3. The App requires Django Sessions

4. Include the authentication URLconf in your project urls.py like this:

	path('authentication/', include('authentication.urls')),

5. Run python manage.py migrate to create the User models (you'll need the Admin app enabled).

6. In your settings.py file include the following:

    SITE_TITLE = 'your site title'
    LOGIN_URL = '/authentication/'
    EMAIL_HOST = 'email-host'
    EMAIL_PORT = email-port
    EMAIL_HOST_USER = 'email-address'
    EMAIL_HOST_PASSWORD = 'email-password'
    EMAIL_USE_TLS = True
    
    # set this to True if you want the app's default favicon
    DEFAULT_APP_FAVICON_ICO = False

8. For login and logout functionality, use -

  • To Login, use anyone of these

          - <a href="{% url 'authentication:login' %}">Login</a>
          - <a href='/authentication/'>Login</a>
    
  • To Logout, use anyone 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' username=request.user.username %}">Account</a>
          - <a href="/authentication/<username>/">Account</a>
    

9. This app uses Bootstrap, Bootstrap Icons, JQuery and Handlebars. These file can be accessed at -

        <link href="{% static 'authentication/assets/node_modules/bootstrap/dist/css/bootstrap.css' %}" rel="stylesheet">
        <link href="{% static 'authentication/assets/node_modules/bootstrap-icons/font/bootstrap-icons.css' %}" rel="stylesheet">

        <script src="{% static 'authentication/assets/node_modules/bootstrap/dist/js/bootstrap.bundle.js' %}"></script>
        <script src="{% static 'authentication/assets/node_modules/jquery/dist/jquery.js' %}"></script>
        <script src="{% static 'authentication/assets/node_modules/handlebars/dist/handlebars.js' %}"></script>

10. Check Demo Website

11. Actual EMAILS will not be sent when DEBUG = TRUE

        Verification Codes, if any, will be printed on the console

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-0.2.3.tar.gz (4.4 MB view details)

Uploaded Source

Built Distribution

django_user_login-0.2.3-py3-none-any.whl (5.7 MB view details)

Uploaded Python 3

File details

Details for the file django-user-login-0.2.3.tar.gz.

File metadata

  • Download URL: django-user-login-0.2.3.tar.gz
  • Upload date:
  • Size: 4.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for django-user-login-0.2.3.tar.gz
Algorithm Hash digest
SHA256 4662de6a7924854f9432c169302066d99780ca1d004914bbcee0174d021889d1
MD5 2f3d1993ccf2f0e0781c4785ee0bec78
BLAKE2b-256 df7b70fd48af43e20fef84be12f1fe5604fcdbec924a82962034c94d2b5ff6a6

See more details on using hashes here.

File details

Details for the file django_user_login-0.2.3-py3-none-any.whl.

File metadata

File hashes

Hashes for django_user_login-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 2c6579147ada048746d26a10010d9ed8601e600dc00ac25a97632864990edfed
MD5 b62bf4696a5719217952c8964f9034b5
BLAKE2b-256 c404ce61896b02a633f2924887007b99940ed9322a0122c107031da3e841d8e9

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