Skip to main content

dj-rest-register

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/

Metadata

Release files for django-swift-auth 1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-swift-auth 1.0
File Size Uploaded Provenance Actions
django-swift-auth-1.0.tar.gz 7.0 kB Without provenance Details for django-swift-auth-1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for django-swift-auth 1.0
File Interpreter ABI Platform Actions
django_swift_auth-1.0-py3-none-any.whl Python 3 none any Details for django_swift_auth-1.0-py3-none-any.whl

Total release size: 15.6 kB

Release files / django-swift-auth-1.0.tar.gz

Download URL django-swift-auth-1.0.tar.gz
Size 7.0 kB
Tags Source
SHA-256 checksum
How to use checksums
866311dc7693b8808bfc7b922da8995b9e476e1eb4e352ae20013bde5e54554f
BLAKE2b-256 checksum
How to use checksums
faa1eca58b5527690eedb21466fb4a2bafe37461ef4da6fd07fc4a733e1734d8
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / django_swift_auth-1.0-py3-none-any.whl

Download URL django_swift_auth-1.0-py3-none-any.whl
Size 8.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f5fd81b185d0a8c1012a0a7fec7620ae5eb3a1a539e1c18a5942012e7baeafff
BLAKE2b-256 checksum
How to use checksums
b324608208fe0ab9e810f7ee723ca7b1c4be8678ca709c587266eb30c9e55951
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for django-swift-auth 1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page