This is exceptionally wrong! If you put a $ in the pattern, it will only match those urls. For example the uri http://localhost/cadastro/56/ won't match anything. Only http://localhost/cadastro/ would match, and if you're including another url file, I doubt that's what you want.

On 12/24/2012 12:01 AM, Matthew Edwards wrote:
I'm still learning Django myself, but I believe each url should end with '$' in order to stop the regex match at the forward slash.

So your new URIs would be:
url(r'^cadastro/$', include('contact.urls')),
url(r'^contato/$', include('contact.urls')),
url(r'^sobre/$', include('contact.urls')),
url(r'^admin/$', include(admin.site.urls)),

I hope that solves your problem.

On Sunday, December 23, 2012 9:19:50 AM UTC-8, Filipe Manuel wrote:

    I wish that when from accessing localhost:8000/cadastro he showed
    a form to register, but all the urls I click redirects to the same
    page. I wonder how pegging the url with the url of the
    application. I've Identified the error, all urls design guide for
    single views of the application, but do not know how to fix it.

    My code: http://dpaste.com/850276/

--
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/-/bBbW61gCokIJ.
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.


--
Peter of the Norse

--
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.

Reply via email to