Django-Appointment is a flexible Django app for managing appointment scheduling. This guide will walk you through the basic setup process.
python -m venv .venv- On Windows:
.venv\Scripts\activate
- On Unix or MacOS:
source .venv/bin/activate
pip install -r requirements.txtpython manage.py runserverpip install django-appointmentINSTALLED_APPS = [
# other apps
'appointment',
'django_q', # Optional: for email reminders
]from django.urls import path, include
urlpatterns = [
# other urls
path('appointment/', include('appointment.urls')),
]AUTH_USER_MODEL = 'your_app.YourUserModel' # Optional if using Django's default user modelAPPOINTMENT_WEBSITE_NAME = 'Your Website Name'Q_CLUSTER = {
'name': 'DjangORM',
'workers': 4,
'timeout': 90,
'retry': 120,
'queue_limit': 50,
'bulk': 10,
'orm': 'default',
}
USE_DJANGO_Q_FOR_EMAILS = TrueFor more configuration options, refer to this page.
python manage.py makemigrations appointment
python manage.py migratepython manage.py qclusterpython manage.py runserverAccess the admin panel at http://127.0.0.1:8000/admin/ to create services, manage configurations, and handle appointments.
Ensure your base template includes the following blocks:
{% block customCSS %}{% endblock %}
{% block title %}{% endblock %}
{% block description %}{% endblock %}
{% block body %}{% endblock %}
{% block customJS %}{% endblock %}Note: At minimum, the customCSS, body, and customJS blocks are required. jQuery is also necessary for proper functionality.
You can override default settings in your settings.py.