Hello, I currently have a website which I am trying to add an archive
to, i currently have the following date based URLs:

    (r'^$', 'django.views.generic.date_based.archive_index',
archive_info),
    (r'^(?P<year>\d{4})/$',
'django.views.generic.date_based.archive_year', archive_info),
    (r'^(?P<year>\d{4})/(?P<month>[a-z]{3})/$',
'django.views.generic.date_based.archive_month', archive_info),
    (r'^(?P<year>\d{4})/(?P<month>[a-z]{3})/(?P<day>\w{1,2})/(?
P<entry_id>[-\w]+)/$',
         'django.views.generic.date_based.object_detail',
archive_info),

my archive info dict contains the following:

        archive_info = {
        'queryset' : Entry.objects.all(),
        'date_field' : 'entry_date',
        'template_name' : 'blog/archive.html',
        }

Now I have 2 questions about this:

1. I understand that to get your standard archive you use links on
your home you use 'django.views.generic.
    date_based.archive_index', however if i use:

{% for dates in date_list %} {{ dates.date }} {% endfor %}

I just get 2008-01-01, i guess thats cos I only have entries in 2008
and the date is formatted wrongly, so my question is how can i get a
list of months, like you find on any archive links; September 2008,
October 2008 etc.

2. At the moment i've just been testing the generic view in a template
which does nothing else apart from show archive links, how can I
incorporate this with my main template (the index page I already have)
which uses views?

I would be grateful for any help or advice.

Andrew
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to