Hi, I have the following URLs.py from django.conf.urls.defaults import * from akonline.views import current_datetime from django.views.generic import date_based from akonline.blog.models import Category, Entry
archive_info = { "queryset" : Entry.objects.all(), "date_field" : "entry_date" } urlpatterns = patterns('', (r'^time/$', current_datetime), (r'^blog/$', 'akonline.blog.views.get_entries'), (r'^test/$', 'akonline.blog.views.blog'), (r'^blog/(?P<category>\w+)/$', 'akonline.blog.views.category_entry'), # Date based URLS: #LINE 20 Below: (r'^archive/$', date_based.archive_index, archive_info {'template_name': 'blog/archive.html'}), (r'^archive/(?P<year>d{4})/?$', date_based.archive_year, archive_info {'template_name': 'blog/ archive.html'}), # Uncomment this for admin: # (r'^admin/', include('django.contrib.admin.urls')), ) and on line 20 I get the following error: Request Method: GET Request URL: http://www.andrewkenyononline.net/test/ Django Version: 1.0-beta_2-SVN-8849 Python Version: 2.4.4 Installed Applications: ['akonline.blog'] Installed Middleware: () Traceback: File "/home/django/django_src/django/core/handlers/base.py" in get_response 76. callback, callback_args, callback_kwargs = resolver.resolve( File "/home/django/django_src/django/core/urlresolvers.py" in resolve 178. for pattern in self.urlconf_module.urlpatterns: File "/home/django/django_src/django/core/urlresolvers.py" in _get_urlconf_module 197. self._urlconf_module = __import__(self.urlconf_name, {}, {}, ['']) Exception Type: SyntaxError at /test/ Exception Value: invalid syntax (urls.py, line 20) This is my first attempt at using data based views so the same error probably occurs on line 21 as well. I would appreciate any help. Regards, 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 -~----------~----~----~----~------~----~------~--~---