Re: Setting urls from project

2013-01-18 Thread Peter of the Norse
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

Re: Setting urls from project

2012-12-24 Thread Matthew Edwards
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(

Setting urls from project

2012-12-23 Thread Filipe Manuel
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 no