I am trying to debug my django code on the server. I am using a multi-tenant schema app so it is easier to run from the server over wsgi rather than using manage.py runserver.
The problem is every time I change some code, view.py, (and it might be more just when I have an error, or had an error) I hit refresh in Firefox and each time I hit refresh it seems to be showing me the past 3-4 page instances before showing me the current change.
Now, I have tried the following:
settings.py:
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.dummy.DummyCache',
}
}
But that didn't appear to work so tried:
apache virtualhost conf
## Added this to stop some weird page caching happening. Appears to be working properly now.
#http://stackoverflow.com/questions/1633684/how-to-disable-django-mod-wsgi-page-caching
WSGIScriptReloading On
# http://stackoverflow.com/questions/11532636/prevent-http-file-caching-in-apache-httpd-mamp
<filesMatch "\.(html|htm|js|css)$">
FileETag None
<ifModule mod_headers.c>
Header unset ETag
Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate"
Header set Pragma "no-cache"
Header set Expires "Wed, 11 Jan 1984 05:00:00 GMT"
</ifModule>
</filesMatch>
As well someone suggested to try the Private Browser in firefox, but the same thing.
As well I tried incrementing a "?v=1" type of thing at the end of the URL, but still didn't help.
So, I can't tell what thing is appearing to cache the past few pages everytime I hit refresh in the browser. This is really slowing down my progress.
Any ideas would be greatly appreciated.