Friday, August 17, 2012

Re: Problem with the urls.py "unexpected end of pattern"

> I think that this is not the problem because I can access to volunters
> without problems. I have problems only with admin, organizers and events
> paths.

So you have problems with all the urls past the first with a wrong pattern.

~$ python
Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56)
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import re
>>> re.compile(r'^volunters/(?V<volunter_id>\d+)/$')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.6/re.py", line 190, in compile
return _compile(pattern, flags)
File "/usr/lib/python2.6/re.py", line 245, in _compile
raise error, v # invalid expression
sre_constants.error: unexpected end of pattern
>>> re.compile(r'^volunters/(?P<volunter_id>\d+)/$')
<_sre.SRE_Pattern object at 0xb76ec590>


Regards

--
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 django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate