开发者

How to go about implementing this calendar feature

I'm trying to make a calendar app that when you click through on a date, takes you to all the events for that particular date. I'm writing the app in Python/Django. A good example would be the event calendar in craigslist.

I'm not sure how I should go about implementing this. I'm not looking for exact solutions but more of a guideline or relevant material so I can figure it out myself.

I saw Django-swingtime and Django-agenda but they seemed over specified over my needs.

I also came across this http://journal.uggedal.com/creating-a-flexible-monthly-calendar-in-django/ but it's not step by step enough for my current level of understanding.

Is figuring out his code and using HTML Calendars the bes开发者_JS百科t way to go or are there other options?


I guess your app is using database where you store all available events, right? Then you show calendar with date values. Then when you click some date, you just switch your presentation (view, page... whatever), connect to database and select all events that have same date as date from clicked element. Is this what are you asking for, or I misunderstood your question?


I dont think the Django ORM is helpful when it comes to queries involving dates. You may consider doing raw sql .

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜