Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialSimon Amz
4,606 PointsHow to model a planning appointment for doctors? (in Django)
Hi there,
I would like to create a small interface in django/python, where doctors could share their availabilities for appointments, and patients could check these slots and eventually make an appointment.
Indeed, unlike basic models, the aim will be to store availabilities of practitioners, and give the opportunity for patients to make an appointment. So I think about a model where a calendar will be displayed, but it's not clear enough.
Any clues?
Thanks for your help
1 Answer
Thomas McDonnell
8,212 PointsHi Simon,
If memory serves Python's calendar module has a built template called HTMLCalendar, which sounds like something you could use.
However, seems like rather than reinventing the wheel, you might be better off just installing a third party? Two I know of would can be found at https://github.com/dokterbob/django-agenda and https://github.com/dakrauth/django-swingtime.
Take a look at the documentation for those two examples on github and see if that fits into your design plans ?
Let me know if that helps.
Regards,
Thomas