Re: URLs Syntax Error

2008-09-03 Thread djandrow
I'm a bit confused here, what is dict, is it the same as archive infor? And what has happened to date_based.archive_index? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

Re: URLs Syntax Error

2008-09-03 Thread Daniel Hepper
Adding a comma will probably not help, because you then have 5 values in the tuple, but the expected format is: (regular expression, Python callback function [, optional dictionary [, optional name]]) Either you put the argument 'template_name' into the archive_info dict or you make two

Re: URLs Syntax Error

2008-09-03 Thread mccomas . chris
i believe you need a comma after archive_info and before {'template_name': 'blog/archive.html'} On Sep 3, 7:40 am, djandrow <[EMAIL PROTECTED]> wrote: > Can no one help me with this, its just these two lines: > >  (r'^archive/$', date_based.archive_index,archive_info > {'template_name':

Re: URLs Syntax Error

2008-09-03 Thread mccomas . chris
right. could do dict(archive_dict, {'template_name': 'blog/archive.html'} ) On Sep 3, 8:40 am, Daniel Hepper <[EMAIL PROTECTED]> wrote: > Adding a comma will probably not help, because you then have 5 values in > the tuple, but the expected format is: > > (regular expression, Python callback

Re: URLs Syntax Error

2008-09-03 Thread djandrow
Can no one help me with this, its just these two lines: (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/archive.html'}), Please? Andrew

Re: URLs Syntax Error

2008-09-03 Thread mccomas . chris
try it without the {} (r'^$','archive_index', dict(archive_dict, template_name='blog/ archive.html')), On Sep 3, 9:07 am, Daniel Hepper <[EMAIL PROTECTED]> wrote: > > could do dict(archive_dict, {'template_name': 'blog/archive.html'} ) > > I don't think it's that easy. I get this: > > >>>

Re: URLs Syntax Error

2008-09-03 Thread Daniel Hepper
> could do dict(archive_dict, {'template_name': 'blog/archive.html'} ) I don't think it's that easy. I get this: >>> dict(archive_dict, {'template_name': 'blog/archive.html'} ) Traceback (most recent call last): File "", line 1, in TypeError: dict expected at most 1 arguments, got 2 The

URLs Syntax Error

2008-09-02 Thread djandrow
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" :