You have to restart the python instance running your Django project whenever you modify urls.py as it is only processed & loaded the first time the python instance is ran.
On Thu, Oct 29, 2009 at 7:37 PM, Graham Dumpleton < [email protected]> wrote: > > Read: > > http://code.google.com/p/modwsgi/wiki/ReloadingSourceCode > > Graham > > On Oct 30, 8:07 am, neridaj <[email protected]> wrote: > > Hello, > > > > I'm having some problems with urls and templates being inconsistent > > upon browser refreshes. I have a base url file at the root of my > > project that inherits my store urls which in turn inherit the satchmo > > urls: > > > > from django.conf.urls.defaults import * > > from domain.store.urls import urlpatterns as storepatterns > > > > # Uncomment the next two lines to enable the admin: > > from django.contrib import admin > > admin.autodiscover() > > > > urlpatterns = patterns('', > > (r'^toolbar/', 'store.views.custom_show_toolbar') > > (r'^admin/', include(admin.site.urls)), > > ) > > > > urlpatterns += storepatterns > > > > I originally had some other urls configured in my base urls but in > > troubleshooting I deleted them leaving only what is listed above. > > However now if I look up one of the non existent urls, and refresh the > > page, I will see the rendered template for the url. If I keep > > refreshing it will sometimes render and sometimes not. I'm also having > > this sort of behavior happen with templates, where sometimes the > > incorrect default templates show and sometimes the correct styled > > templates show. > > > > It seems like I have a caching problem but I'm not sure how to fix > > this. I'm using nginx for static content in front of apache andmod_wsgi, > If you have any ideas I would appreciate any help. > > > > Thanks, > > > > J > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Satchmo users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/satchmo-users?hl=en -~----------~----~----~----~------~----~------~--~---
