Skip to main content

A Django app to rest framework custom user registration and authentication.

Project description

Django rest framework custom user authentication package

Quick start

  1. Add “app” in your INSTALLED_APPS settings like this:

    INSTALLED_APPS = [
        ...
        'dj_swift_auth',
        'rest_framework',
        'rest_framework.authtoken',
    ]
  2. Include the app URLconf in your project urls.py like this::

    path(‘user/’, include(‘dj_swift_auth.urls’)),

  3. settings.py file add your use model::

    AUTH_USER_MODEL = ‘dj_swift_auth.User’

  4. Drop current database and delete all migrations file from your application then again run migration in the app::
    1. python manage.py makemigrations dj_swift_auth

    2. python manage.py migrate dj_swift_auth

    3. python manage.py migrate

API endpoint:

  1. Registration: user/api/register/

  2. Login: user/api/login/

  3. Profile: user/api/profile/

  4. Profile Update: user/api/profile/1/

  5. Change Password: user/api/change-password/1/ # Pass the user ID

  6. Logout: user/api/logout/

Project details


Release history Release notifications | RSS feed

This version

1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-swift-auth-1.0.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

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

django_swift_auth-1.0-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file django-swift-auth-1.0.tar.gz.

File metadata

  • Download URL: django-swift-auth-1.0.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.5

File hashes

Hashes for django-swift-auth-1.0.tar.gz
Algorithm Hash digest
SHA256 866311dc7693b8808bfc7b922da8995b9e476e1eb4e352ae20013bde5e54554f
MD5 edf0e0e1abfcd3d26e4864415266c081
BLAKE2b-256 faa1eca58b5527690eedb21466fb4a2bafe37461ef4da6fd07fc4a733e1734d8

See more details on using hashes here.

File details

Details for the file django_swift_auth-1.0-py3-none-any.whl.

File metadata

  • Download URL: django_swift_auth-1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.5

File hashes

Hashes for django_swift_auth-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f5fd81b185d0a8c1012a0a7fec7620ae5eb3a1a539e1c18a5942012e7baeafff
MD5 4c7ae13966eb8056b16fb36f53ae190a
BLAKE2b-256 b324608208fe0ab9e810f7ee723ca7b1c4be8678ca709c587266eb30c9e55951

See more details on using hashes here.

Supported by

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