I am using django 1.7.5 for my project .I am using vagrant and virtual box for my project.I successfully ran the server and detected changes on my browser.But,the problem is After making any changes in the html file,I had to restart the server to see changes on the browser.
Does django 1.7.5 detect changes on the go?(like make change the file,refresh the browser,see changes.) or this is not related to django version?
My website is very old. so it uses 1.7.5.How to enable caching in my version of django 1.7.5. I got this in my settings file.
CACHES = { 'default': { 'BACKEND':
'django.core.cache.backends.memcached.MemcachedCache', 'LOCATION':
os.environ.get('CACHES_DEFAULT_LOCATION', '127.0.0.1:11211') }
, 'social': { 'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache', 'LOCATION': os.environ.get('CACHES_SOCIAL_LOCATION', '127.0.0.1:11211')
} }
Edit: My question might be wrong specifically. The changes I made in the html file doesn't reflect on browser. It use to reflect when I run the example project from django locally (without using virtualbox)
return render(request, 'my_template.html', {})
, Django will load the template file each time the view runs by default. – Alasdair