django 1.4 caching GET to /login/ -
i upgraded django framework 1.3 1.4. today ran tests on login page. have switch determines whether 'reset password' link should displayed on login screen. test worked nicely under 1.3, doesn't under 1.4.
i've setup own view , template login page follows:
urlpatterns = patterns('framework.views', url(r'^$', 'index'), url(r'^login/$', 'login_view'), url(r'^logout/$', 'logout_view'), ... upon further investigation noticed if browse login page first time, works. if remove entries urls.py file (ie /login/ entries), can still browse /login/ page. when restart django test server, url entry still valid. deleting urls.pyc file doesn't give me 404. when try , post, i'll 404. incidentally, phenomenon doesn't happen of other urls.
i have feeling reason why tests fail django somehow caches /login/ request in mysterious way , login page never refreshes each of tests run on screen. know how overcome problem , perhaps why particular feature has changed. have newly implemented template response??
do use firefox? try remove firefox cache, or whatever browser's cache using...
i ran same issue yesterday. around , found lot of people having issue. have @ this...
don't blame django did in first place ;) (i blamed me later, before knowing real problem)...
let's blame protocol :p
hope solves problem!
edit: here have possible solutions problem (if use firefox):
1) http://support.mozilla.org/es/questions/848678
2) https://superuser.com/questions/23134/how-to-turn-off-firefox-cache
Comments
Post a Comment