Monday, April 2, 2012

How to Reload Django's URL Config

Problem
For some reason, you need to reload your Django URL config.
Normally, the root URL config will be imported and stored in memory when your
server process starts up. Occasionally though, you may want to reload it. This
can be the case if your URL configuration changes depending on certain
parameters.


Solution
You can reload the URL config using the following snippet:
Preview...

Source: http://feeds.dzone.com/~r/zones/css/~3/46Rg0BrLSwE/how-reload-djangos-url-config

Sacramento Ecommerce Website Development Sacramento Wordpress Website Design Sacramento Web Development Sacramento Website Design Sacramento Marketing

No comments:

Post a Comment

Blog Archive