A Django app to provide basic waitlist functionality.
Project description
Django Dans Waitlist
Description
A Django app to handle waitlist and basic functionality.
Support for Waitlist
and WaitlistEntry
models, as well as a WaitlistManager
to handle common operations.
Quick start
- Install the package via pip:
pip install django-dans-waitlist
- Add "django_dans_waitlist" to your INSTALLED_APPS setting like this:
INSTALLED_APPS = [
...
'django_dans_waitlist',
]
- Include the URL configs in your project
urls.py
for the REST API endpoints like this:
path("api/waitlist/", include("django_dans_waitlist.urls")),
-
Run
python manage.py migrate
to update your database schema. -
Use the API endpoints, in code or your Django admin portal.
Requirements
- Python 3.10 - 3.11
- Django 3.1 or higher
- Django Rest Framework
- NOTE: not only must you have this installed, you must have set
DEFAULT_AUTHENTICATION_CLASSES
andDEFAULT_PAGINATION_CLASS
in yoursettings.py
to work with the APIs properly. An example config would be:
- NOTE: not only must you have this installed, you must have set
REST_FRAMEWORK = {
"DEFAULT_PAGINATION_CLASS": "rest_framework.pagination.PageNumberPagination",
"PAGE_SIZE": 20,
"DEFAULT_AUTHENTICATION_CLASSES": (
"rest_framework.authentication.TokenAuthentication",
),
}
Available Settings
Currently all available settings are optional:
TEAM_NAME
- Default team name to use for emails, can be added to message context manually as well still.
Add these to your settings.py
file to customize the app's behavior like so:
TEAM_NAME = "My Team"
Docs
Model docs.
API docs.
https://danielnazarian.com
Copyright 2024 © Daniel Nazarian.
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
Built Distribution
File details
Details for the file django-dans-waitlist-1.0.0.tar.gz
.
File metadata
- Download URL: django-dans-waitlist-1.0.0.tar.gz
- Upload date:
- Size: 14.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 06fea570a1690c10b5b7e8aa0ba56474a127789cabf27e3774dc6f83e1a6e955 |
|
MD5 | eb4b0def268537506ddb5e1c703e6eba |
|
BLAKE2b-256 | 075a907639b0cc34c284c51d488088aa7887d804417511552d370b8cd646cd6b |
File details
Details for the file django_dans_waitlist-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: django_dans_waitlist-1.0.0-py3-none-any.whl
- Upload date:
- Size: 17.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb5057457c938a7bc38bed221740c8aacb2e334fbd75847a3dc07296b74c2f58 |
|
MD5 | 07b18c6f788bfd104da22e0a47f7b966 |
|
BLAKE2b-256 | afd046df063435174683d4043bc34019e41c020652b49276b27034a78170a859 |