Skip to main content

Full featured user app with built-in verification and activity stream

Project description

Accounts is a Django app handles essential user security

  • Email verification upon register

  • Phone is enforced and mandatory “handled by Twilio sms service”

  • Device access location “handled by geoip2 and maxmind db”

  • Activity stream for user access

Indeed it is opinionated user app as follows:

  • User class is AbstractUser has a Profile foreign key

  • Profile with has fields like photo and date_of_birth

Check the docs for deep details.

Quick start

  1. Add “accounts” to your INSTALLED_APPS setting like this:

        'BACKEND': 'django.template.backends.django.DjangoTemplates',
        'DIRS': ['accounts/templates'],
  2. Include the accounts URLconf in your project like this:

    include(('accounts.urls', 'accounts'), namespace='auth'))
  • Note: mind the namespace as it is used in templates and testing.

  1. Set mandatory settings:

    # refers to the user model
    AUTH_USER_MODEL = 'accounts.User'
    MEDIA_ROOT = os.path.join(BASE_DIR, "media")
    MEDIA_URL = '/media/'
    # this is on-demand auth backends
    # your favorite email backend
    # just for testing it is set to console
    EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
    # maxmind db required
    # follow
    GEOIP_PATH = os.path.join(BASE_DIR, 'path/to/maxmind/db')
    # Twilio required sms validation
    # get keys from
  2. Run python migrate to create the accounts models.

  3. Start the development server and visit

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-secured-accounts-1.0.2.tar.gz (17.1 MB view hashes)

Uploaded source

Built Distribution

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page