Skip to main content

This "Account" app is an authentication app based on Django built in Authentication module and is an email authentication system.

Project description

This “Account” app is an authentication app based on Django’s built in Authentication module and is an email authentication system.

Quick start

  1. Install dependencies:

    pip install -r requirements.txt
  2. Add “account” to your INSTALLED_APPS setting like this:

    INSTALLED_APPS = [
        ...
        'account',
    ]
  3. Include the polls URLconf in your project urls.py like this:

        path('', include('account.urls')),
    ] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
    
    if settings.DEBUG:
        urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
  4. Add to end of settings.py for static media:

    #ADD TO BOTTOM OF SETTINGS FILE
    
    # Static File Handling Settings
    STATIC_URL = '/static/'
    STATICFILES_DIRS = [
        os.path.join(BASE_DIR, "static")
    ]
    STATIC_ROOT = os.path.join(BASE_DIR, "static_cdn")
    
    # Media file handling Settings
    MEDIA_URL = '/media/'
    MEDIA_ROOT = os.path.join(BASE_DIR, 'media_cdn')
    
    
    # Auth Redirects
    LOGIN_REDIRECT_URL = '/YOUR-URL'
    LOGOUT_REDIRECT_URL = '/YOUR-URL'
  5. Migrate to create the account models.:

    python manage.py migrate
  1. Start the development server and visit http://127.0.0.1:8000/admin/ to create a new user (you’ll need the Admin app enabled).

  2. Visit http://127.0.0.1:8000/ to begin using the authentication app.

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-b2t-accounts-0.0.1.tar.gz (5.5 kB view hashes)

Uploaded Source

Built Distribution

django_b2t_accounts-0.0.1-py3-none-any.whl (5.9 kB view hashes)

Uploaded Python 3

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