Skip to content

Commit 755d278

Browse files
committed
version 1.0.0
1 parent bddc76f commit 755d278

File tree

4 files changed

+89
-74
lines changed

4 files changed

+89
-74
lines changed

README.md

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
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.

README.rst

Lines changed: 0 additions & 65 deletions
This file was deleted.

setup.cfg

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,19 @@
11
[metadata]
22
name = django-appointment
33
version = 1.0.0
4-
description = A Django app for managing appointment scheduling with ease and flexibility.
5-
long_description = file: README.rst
4+
description = "A Django app for managing appointment scheduling with ease and flexibility."
65
url = https://github.com/adamspd/django-appointment
7-
author = Adams Pierre David
8-
author_email = [email protected]
9-
author_website = https://adamspierredavid.com/
10-
readme = README.rst
6+
author = "Adams Pierre David"
7+
author_email = "[email protected]"
8+
author_website = "https://adamspierredavid.com/"
9+
readme = README.md
1110
license = Apache License 2.0
1211
classifiers =
1312
Environment :: Web Environment
1413
Framework :: Django
1514
Framework :: Django :: 4.2
1615
Intended Audience :: Developers
17-
License :: OSI Approved :: Apache License 2.0
16+
License :: OSI Approved :: Apache Software License
1817
Operating System :: OS Independent
1918
Programming Language :: Python
2019
Programming Language :: Python :: 3

setup.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1-
from setuptools import setup
1+
import setuptools
22

3-
setup()
3+
with open("README.md", "r", encoding="utf-8") as fh:
4+
long_description = fh.read()
5+
6+
setuptools.setup(
7+
long_description=long_description,
8+
long_description_content_type="text/markdown",
9+
)

0 commit comments

Comments
 (0)