On Sun, Jul 19, 2009 at 4:02 AM, Rob B (uk) wrote:
> (r'^(?P\d{4}/, 'archive_year', entry_info_dict,
This named regular-expression group is missing a ")"
It should be: (?P\d{4})
http://docs.djangoproject.com/en/dev/topics/http/urls/#named-groups
Best,
Gabe
--~--~-~--~~
2009/7/19 Rob B (uk) :
>
> Getting a unblanced parenthesis error with this urls setup. Not sure
> why.
The message is pretty self-explanatory. It seems to me that you have
forgotten a parenthesis after your first symbolic group named year.
Frédéric
> urls.py:
> from django.conf.urls.defaults im
Thanks Shaun Li. I just figured that out, but thank you because I very
well could have still been stumped until you posted.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group
Opps. I posted before I treid all that I could try. I found my error
thanks to you help Don Arbow and everybody's help on my last post.
Thanks you all.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users"
Just add ',' after ')' when only one note that tuple needed:(r'^select/$', 'mysite.polls.views.select'),-- Shaun Li
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send ema
from django.conf.urls.defaults import *
urlpatterns = patterns('',
# Example:
# (r'^mysite/', include('mysite.apps.foo.urls.foo')),
(r'^polls/$', 'mysite.polls.views.select'),
(r'^polls/(?P\d+)/$', 'mysite.polls.views.detail'),
(r'^polls/(?P\d+)/results/$',
'mysite.polls.views
On Sep 25, 2006, at 5:48 PM, brad wrote:
>
> Exception Type: TypeError
> Exception Value:'tuple' object is not callable
> Exception Location: E:\dp1\mysite\..\mysite\urls.py in ?, line 10
>
> And line ten of 'urls.py' is the following:
>
> (r'^select/$', 'mysite.polls.views.sel
7 matches
Mail list logo