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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file django-b2t-accounts-0.0.1.tar.gz.

File metadata

  • Download URL: django-b2t-accounts-0.0.1.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6

File hashes

Hashes for django-b2t-accounts-0.0.1.tar.gz
Algorithm Hash digest
SHA256 3f02a5af10774f1308fde24b4c94740f64beda08454497aafbafee8a0ed331a2
MD5 7dde9c3c1df6759f2ba813419e25cdd6
BLAKE2b-256 f3759b4d4bf86ee7e360f1130e7cf69b7028d5a1313b24c57aef80ddbabb11b0

See more details on using hashes here.

File details

Details for the file django_b2t_accounts-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: django_b2t_accounts-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6

File hashes

Hashes for django_b2t_accounts-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 50ecc8080e88803623ad95d4c9ebef4474d154cfee3cdccd751443251dc99746
MD5 a02573da25fa07e65931f061ccb0527b
BLAKE2b-256 5e7964fc2108bc9f52136c1c701d0a3f128aea9934dc6e5dae224d4bcf569e20

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 Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page