Re: How to create a list of months from a date field.

2008-08-31 Thread djandrow
I've added the following to my urls.py, i don't know if they work, my server only restarts every so often: (r'^archive/$', date_based.archive_index, archive_info {'template_name': 'blog/archive.html'}), (r'^archive/(?Pd{4})/?$', date_based.archive_year, archive_info {'template_name': 'blog/a

Re: How to create a list of months from a date field.

2008-08-30 Thread djandrow
I've had alook through http://www.djangoproject.com/documentation/generic_views/ but i'm still not clear on what to do. I might be being a bit think but could someone explain it to me. Regards, Andrew On Aug 30, 5:59 pm, Dmitry Dzhus <[EMAIL PROTECTED]> wrote: > djandrow wrote: > > I understand

Re: How to create a list of months from a date field.

2008-08-30 Thread Dmitry Dzhus
djandrow wrote: > I understand dynamic urls and templates and things, so i don't need > help with that. What i need to know is how can i get a list of months > which have entries in them, I'd apperciate any help. Use generic date-based view (under django.views.generic.date_based.) and see `date_

How to create a list of months from a date field.

2008-08-30 Thread djandrow
I'm basically trying to create a standard archive function. I have the following field in my models:entry_date = models.DateField(auto_now_add=True) I understand dynamic urls and templates and things, so i don't need help with that. What i need to know is how can i get a list of months w