python - Django Templates urls not updating -


i have been changing of views templates urls lately, , switched from:

(r'^(?p<slug>[^\.]+)/view_post/$', 'view_post'), 

to :

(r'^(?p<slug>[^\.]+)/post/$', 'post'), 

in blog application urls.py. and, though did syncdb , migrated blog application south, new url doesn't seem considered sitemaps or admin interface redirects me on old url when i'm clicking on view article.

how restarting gunicorn? -hup? sounds weird, try killing restarting it. also- shouldn't need restart nginx, gunicorn

#start command, stores pid in file in /tmp sudo python manage.py run_gunicorn -p /tmp/gunicorn.pid -b 127.0.0.1:8000 --daemon  #stop command sudo kill `cat /tmp/gunicorn.pid` #note aren't apostrophes, ~ key  #restart commad sudo kill -hup `cat /tmp/gunicorn.pid` 

i write these little scripts can call ./start ./stop ./restart main folder, makes easier


Comments