A Django app to rest framework custom user registration and authentication.
Project description
Django rest framework custom user authentication package
Quick start
Add “app” in your INSTALLED_APPS settings like this:
INSTALLED_APPS = [ ... 'dj_swift_auth', 'rest_framework', 'rest_framework.authtoken', ]- Include the app URLconf in your project urls.py like this::
path(‘user/’, include(‘dj_swift_auth.urls’)),
- settings.py file add your use model::
AUTH_USER_MODEL = ‘dj_swift_auth.User’
- Drop current database and delete all migrations file from your application then again run migration in the app::
python manage.py makemigrations dj_swift_auth
python manage.py migrate dj_swift_auth
python manage.py migrate
API endpoint:
Registration: user/api/register/
Login: user/api/login/
Profile: user/api/profile/
Profile Update: user/api/profile/1/
Change Password: user/api/change-password/1/ # Pass the user ID
Logout: user/api/logout/
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
866311dc7693b8808bfc7b922da8995b9e476e1eb4e352ae20013bde5e54554f
|
|
| MD5 |
edf0e0e1abfcd3d26e4864415266c081
|
|
| BLAKE2b-256 |
faa1eca58b5527690eedb21466fb4a2bafe37461ef4da6fd07fc4a733e1734d8
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f5fd81b185d0a8c1012a0a7fec7620ae5eb3a1a539e1c18a5942012e7baeafff
|
|
| MD5 |
4c7ae13966eb8056b16fb36f53ae190a
|
|
| BLAKE2b-256 |
b324608208fe0ab9e810f7ee723ca7b1c4be8678ca709c587266eb30c9e55951
|