Re: How to make Django pick new urls immediately

2011-10-07 Thread Andre Terra
That is correct. I believe you could go even further and not even prefix the app's urls, by adding an empty path (r'^', include('api.urls')), I don't quite remember what the raw string should look like, but this would let you apply your app's url patterns to the root of your domain, which in some

Re: How to make Django pick new urls immediately

2011-10-07 Thread Kayode Odeyemi
On Fri, Oct 7, 2011 at 9:33 AM, Daniel Roseman wrote: > On Friday, 7 October 2011 09:20:03 UTC+1, Kayode Odeyemi wrote: >> >> 2011/10/6 Yaşar Arabacı >> >> maybe you should restart the server? And, do you include new urls in your >>> root url config? >>> >>> OK! I just found out that if you have

Re: How to make Django pick new urls immediately

2011-10-07 Thread Daniel Roseman
On Friday, 7 October 2011 09:20:03 UTC+1, Kayode Odeyemi wrote: > > 2011/10/6 Yaşar Arabacı > >> maybe you should restart the server? And, do you include new urls in your >> root url config? >> >> OK! I just found out that if you have urls.py in different packages and > these urls.py files are a

Re: How to make Django pick new urls immediately

2011-10-07 Thread Kayode Odeyemi
2011/10/6 Yaşar Arabacı > maybe you should restart the server? And, do you include new urls in your > root url config? > > OK! I just found out that if you have urls.py in different packages and these urls.py files are all included in the root package urls.py file of the app, if I have a url (say

Re: How to make Django pick new urls immediately

2011-10-06 Thread Babatunde Akinyanmi
With django, when a url is sent to the server, the work flow is that urls.py is first run to check if an expression that matches the url submitted is available in the pattern function. If available, it runs the view function specified in the pattern. This just means that you don't have to restart y

Re: How to make Django pick new urls immediately

2011-10-06 Thread Yaşar Arabacı
maybe you should restart the server? And, do you include new urls in your root url config? 2011/10/6 Kayode Odeyemi > Hello, > > I don't know if I'm the only one experiencing this. I have multiple urls.py > in different packages based on > the similarities of the modules. Everytime I add a new u

How to make Django pick new urls immediately

2011-10-06 Thread Kayode Odeyemi
Hello, I don't know if I'm the only one experiencing this. I have multiple urls.py in different packages based on the similarities of the modules. Everytime I add a new url to urls.py, it doesn't take effect immediately. Always returning 404 until I have to do something... Can't remember what I di