|
| 1 | +# Appointment Scheduler |
| 2 | + |
| 3 | +Appointment Scheduler is a Django app designed for managing appointment scheduling with ease and flexibility. It allows |
| 4 | +users to define custom configurations for time slots, lead time, and finish time, or use the default values provided. |
| 5 | +The app also handles conflicts and availability for appointments, ensuring a smooth user experience. |
| 6 | + |
| 7 | +Detailed documentation is in the "docs" directory. |
| 8 | + |
| 9 | +## Features |
| 10 | + |
| 11 | +1. Customizable time slots, lead time, and finish time. |
| 12 | +2. Handles appointment conflicts and availability. |
| 13 | +3. Easy integration with Django admin interface for appointment management. |
| 14 | +4. User-friendly interface for viewing available time slots and scheduling appointments. |
| 15 | + |
| 16 | +## Quick start |
| 17 | + |
| 18 | +1. Add "appointment" to your INSTALLED_APPS setting like this: |
| 19 | + |
| 20 | +```python |
| 21 | +INSTALLED_APPS = [ |
| 22 | + '...', |
| 23 | + 'appointment', |
| 24 | +] |
| 25 | +``` |
| 26 | + |
| 27 | +2. Include the appointment URLconf in your project urls.py like this: |
| 28 | + |
| 29 | +```python |
| 30 | +from django.urls import path, include |
| 31 | + |
| 32 | +urlpatterns = [ |
| 33 | + '...', |
| 34 | + path('appointment/', include('appointment.urls')), |
| 35 | +] |
| 36 | +``` |
| 37 | + |
| 38 | +3. Run `python manage.py migrate` to create the appointment models. |
| 39 | + |
| 40 | +4. Start the development server and visit http://127.0.0.1:8000/admin/ |
| 41 | + to create appointments, manage configurations, and handle appointment conflicts (you'll need the Admin app enabled). |
| 42 | + |
| 43 | +5. You have to create at least a service before using the application in the admin page. If your service is free, add 0 |
| 44 | + as the price. If you want to charge for your service, add the price in the price field. You can also add a |
| 45 | + description |
| 46 | + for your service. |
| 47 | + |
| 48 | +6. Visit http://127.0.0.1:8000/appointment/request/<service_id>/ to view the available time slots and schedule an |
| 49 | + appointment. |
| 50 | + |
| 51 | +## Customization |
| 52 | + |
| 53 | +1. In your Django project's settings.py, you can override the default values for the appointment scheduler: |
| 54 | + |
| 55 | +```python |
| 56 | +APPOINTMENT_SLOT_DURATION = 30 # minutes |
| 57 | +APPOINTMENT_LEAD_TIME = (9, 0) # (hour, minute) 24-hour format |
| 58 | +APPOINTMENT_FINISH_TIME = (16, 30) # (hour, minute) 24-hour format |
| 59 | + |
| 60 | +# Additional configuration options |
| 61 | +APPOINTMENT_CLIENT_MODEL = 'auth.User' |
| 62 | +APPOINTMENT_BASE_TEMPLATE = 'base_templates/base.html' |
| 63 | +APPOINTMENT_WEBSITE_NAME = 'Website' |
| 64 | +APPOINTMENT_PAYMENT_URL = None |
| 65 | +APPOINTMENT_THANK_YOU_URL = None |
| 66 | +``` |
| 67 | + |
| 68 | +2. Modify these values as needed for your application, and the scheduler will adapt to the new settings. |
| 69 | + |
| 70 | +3. To further customize the app, you can extend the provided models, views, and templates or create your own. |
| 71 | + |
| 72 | +## Support |
| 73 | + |
| 74 | +For support or questions regarding the Appointment Scheduler app, please refer to the documentation in the "docs" |
| 75 | +directory or visit the GitHub repository for more information. |
0 commit comments