Also, your URL patters should start with "^" like your first one does. And unless you need the older version, I would upgrade to the latest stable version of Django (1.4.1) before doing anything else.
_Nik On 8/29/2012 7:37 PM, Scarl wrote: > My python version is 2.7.2 , and django version is 1.2.7 > I have a test just now. > If i put the name parameter in mysite.urls like url(r'^test/$', > 'testpage', name='www'), the {% url www %} can work... > But when I put the name parameter in mysite.myapp.urls like > url(r'help/$', 'testpage', name='www'), and mysite.urls is > url(r'test/', include(mysite.myapp.urls)). This time the {% url www %} > can not work! > Is it when I use include('mysite.myapp.urls'), the name parameter can > not work? And the name parameter can only in mysite.urls? > Can anyone help me? thx! > -- > You received this message because you are subscribed to the Google > Groups "Django users" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/django-users/-/x6qNBIrfKLsJ. > To post to this group, send email to django-users@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. -- 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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.