Hi, I've been working with date_based generic views in my application,
and while everything was going great, all of a sudden I'm getting this
error on, while trying to access records for a specific month:


ViewDoesNotExist at /projects/2006/jun/
Could not import django.views.generic.date_based.archive_month. Error
was: No module named archive_month


Here's my urlpattern for projects:


    # Projects

(r'^projects/(?P<year>\d{4})/(?P<month>[a-z]{3})/(?P<day>\d{2})/(?P<slug>[-\w]+)/$',

         'django.views.generic.date_based.object_detail',
             dict(projects_dict, slug_field='slug',
template_name='project_detail.html')
             ),

    (r'^projects/(?P<year>\d{4})/(?P<month>[a-z]{3})/$',
         'django.views.generic.date_based.archive_month.object_list',
             dict(projects_dict, template_name='projects_month.html')
             ),

    (r'^projects/(?P<year>\d{4})/$',
         'django.views.generic.date_based.archive_year.object_list',
             dict(projects_dict, make_object_list = True,
template_name='projects_year.html')
             ),

    (r'^projects/$',
         'django.views.generic.date_based.archive_index',
             dict(projects_dict, template_name='projects_latest.html')
             ),


What could be wrong and why can't I import archive_month module?


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to