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.pyfor the REST API endpoints like this:
path("api/waitlist/", include("django_dans_waitlist.urls")),
-
Run
python manage.py migrateto 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_CLASSESandDEFAULT_PAGINATION_CLASSin yoursettings.pyto 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
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_dans_waitlist-1.1.0.tar.gz.
File metadata
- Download URL: django_dans_waitlist-1.1.0.tar.gz
- Upload date:
- Size: 14.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a1ccaafbcb25593274516f07d8cf69a1e8effb0df8fbac9534ccdd661044b926
|
|
| MD5 |
d078c153524a263b541ce0c7bc986a75
|
|
| BLAKE2b-256 |
1a34dac7497a5fe9615f6be34aac3c66e677cb49aad0923b481416204d308abc
|
File details
Details for the file django_dans_waitlist-1.1.0-py3-none-any.whl.
File metadata
- Download URL: django_dans_waitlist-1.1.0-py3-none-any.whl
- Upload date:
- Size: 18.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eac029a599f981d0a40b6be1e2f2ac365231dbcf670504128fe6a17b36925036
|
|
| MD5 |
68354423d77d24ea022d3ac5c7a1f830
|
|
| BLAKE2b-256 |
3b96f746326e1efdd69176d710d374988bcf19e3d2284906ea1ff97c4e981cb1
|