Production-ready REST endpoints for common authentication flows.
Project description
Djupter is a Django app that provides production-ready REST endpoints for common authentication flows.
Get the package: pip install djupiter
Documentation: https://djupiter.readthedocs.io/en/latest/
Note
This package is still in early development, breaking changes might occur regularly.
Quick start
Add “djupiter” and “drf_yasg” to your INSTALLED_APPS setting like this:
INSTALLED_APPS = [ ... "drf_yasg", "rest_framework.authtoken", "djupiter", ]Fill out the following fields on your settings file:
# Used for the auto-generated API docs PROJECT_NAME = "My Project" PROJECT_DEVELOPER_EMAIL = "developer@example.com" PROJECT_API_VERSION = "0.0.1" # Used for sending emails. EMAIL_FROM = "no-reply@example.com" ## For production: # EMAIL_HOST = os.environ.get("EMAIL_HOST") # EMAIL_USE_TLS = int(os.environ.get("EMAIL_USE_TLS", default=0)) # EMAIL_PORT = os.environ.get("EMAIL_PORT") # EMAIL_HOST_USER = os.environ.get("EMAIL_HOST_USER") # EMAIL_HOST_PASSWORD = os.environ.get("EMAIL_HOST_PASSWORD") ## For testing: EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend' # Use the custom Djupiter User model AUTH_USER_MODEL = 'djupiter.User'Include the djupiter URLconf in your project urls.py like this:
path('api/', include('djupiter.urls')),Run python manage.py migrate to create the djupiter models.
Visit http://127.0.0.1:8000/api/docs for the API documentation. Happy hacking!
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
File details
Details for the file djupiter-0.2.1.tar.gz.
File metadata
- Download URL: djupiter-0.2.1.tar.gz
- Upload date:
- Size: 15.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1ed2679eafc42b642a1d4320793a8e6acdb5cb382e8669304296203765a375b6
|
|
| MD5 |
bbf58e3e71cb515bfa92a225a7bfb0a5
|
|
| BLAKE2b-256 |
518c8ce8e5ab5c5012467b65b0fa938c3d25d6479c18a40f906595a34f4a99b8
|