Re: url tag: "'str' object has no attribute 'regex'"

2013-05-15 Thread quilpy
thanks, that helped On Tuesday, 2 April 2013 08:45:32 UTC+5:30, Wenliang Chen wrote: > > Hi, > > I got the same issue. And I solved it doing this: > > urlpatterns= patterns('', > (r'^login/$', 'django.contrib.auth.views.login'), <-Remove the > last comma in the patterns() > ) > > Hope

Re: url tag: "'str' object has no attribute 'regex'"

2013-04-01 Thread Wenliang Chen
Hi, I got the same issue. And I solved it doing this: urlpatterns= patterns('', (r'^login/$', 'django.contrib.auth.views.login'), <-Remove the last comma in the patterns() ) Hope this helps On Friday, May 18, 2012 5:58:28 AM UTC+8, refreegrata wrote: > > Hello list > > I know, this

url tag: "'str' object has no attribute 'regex'"

2012-05-17 Thread refreegrata
Hello list I know, this question has been posted and resolved before, but the solutions don't work in my situation. I don't know why. When I try to use the "url" tag in any template an exception is raised: "'str' object has no attribute 'regex'" for example, with this I got the error: