Skip to main content

A Django app to provide basic waitlist functionality.

Project description

Django Dans Waitlist

Lint Test Types codecov

Python Versions Django Versions PyPI Version Downloads GitHub stars License Codacy grade Code style

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

  1. Install the package via pip:
pip install django-dans-waitlist
  1. Add "django_dans_waitlist" to your INSTALLED_APPS setting like this:
INSTALLED_APPS = [
	...
	'django_dans_waitlist',
]
  1. Include the URL configs in your project urls.py for the REST API endpoints like this:
path("api/waitlist/", include("django_dans_waitlist.urls")),
  1. Run python manage.py migrate to update your database schema.

  2. 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 and DEFAULT_PAGINATION_CLASS in your settings.py to work with the APIs properly. An example config would be:
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

django-dans-waitlist-1.0.1.tar.gz (14.5 kB view details)

Uploaded Source

Built Distribution

django_dans_waitlist-1.0.1-py3-none-any.whl (17.7 kB view details)

Uploaded Python 3

File details

Details for the file django-dans-waitlist-1.0.1.tar.gz.

File metadata

  • Download URL: django-dans-waitlist-1.0.1.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

Hashes for django-dans-waitlist-1.0.1.tar.gz
Algorithm Hash digest
SHA256 d8056a2397082708a7ee5038f25b28627f8c0ed2f477ee9b3cd5c0e0daf1e544
MD5 b413a688adb60cfd149d086394bde83e
BLAKE2b-256 48afad513127c8f0bef868756811697dcf2c0324b1ce1bedc38661df435277ab

See more details on using hashes here.

File details

Details for the file django_dans_waitlist-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for django_dans_waitlist-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1b130585ec6fc023f4ff55f50e6e98e2c00dd5e08931badc70fa9aa56a47ab25
MD5 b17467de1be3c1441d205ce7573e18f4
BLAKE2b-256 85630c8a4a0cdd2d1c19b808d554e736e646639be2abe731626208f5d2758046

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page