Thursday, March 28, 2019

Re: There's any django app for calendar?

Hi Fellipe,

On 28/03/2019 14.45, Fellipe Henrique wrote:
> Hello guys,  tried to search on google, but no lucky..
>
> Anyone knows any django app for calendar, to set appointments,
> hour/day... with frontend?
>


I had sort of the same issue a while ago. I wanted a simple booking
system for a website for my familys summer house.

None of the existing apps that others have kindly linked to really
filled my requirements. To be honest, I can't remember exactly why, but
I think they were either too complex for my needs or where simply
designed for something else.

In the end I started hacking around with the python calendar module from
the standard library:

https://docs.python.org/3/library/calendar.html

Which has a nice HTMLCalendar class which can be used for generating a
calendar. It can be "sort of" customized with CSS classes, but in the
end I ended up copy-pasting the HTMLCalendar code and customizing it for
my needs, primarily because I needed bit more than just custom CSS.

Feel free to have a look here:

https://github.com/laudrup/ebbamaala

Specifically, there's a custom tag for rendering the calendar here:

https://github.com/laudrup/ebbamaala/blob/master/website/templatetags/calendar.py

Of course, you also need the booking model etc. to show and handle new
bookings etc.

Not sure if this is the right way to do it and I'm far from being and
expert in Django (or Python for that matter), but hope it might be useful.

If someone else can tell me some better way to do it, I'd be very
interested as well :-)

Kind regards,

Kasper Laudrup

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/273e1f23-b8e4-31d8-d519-2d10e3898e6d%40stacktrace.dk.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment