templates not updating when i change things please help

5,978 views
Skip to first unread message

Rich

unread,
Feb 19, 2012, 9:53:16 AM2/19/12
to Django users
Hi I am pretty new to django and I feel like I either have some kind
of configuration wrong or maybe im not understanding how something
works.

Whats happening is when I make a small change in one of my templates,
the change is not reflected on my site.

I have noticed that if I make significant changes in one of my views,
I might see an update in the actual website after reloading the page
(but it seems to be hit or miss)

If I make only a small change, there is almost never an update to the
actual website unless it is a change within a view.

Changing some text within a template file yields no results.

If I mess up some code i will get debugging messages, but if I fix the
code, I get the same (cached?) result

Furbee

unread,
Feb 19, 2012, 9:59:23 AM2/19/12
to django...@googlegroups.com
When you make a change to a module (.py) file, you may need to restart your web server service (Apache2, IIS Service, etc). For template files (.htm/html) I have never had to restart my server for those changes to be reflected, so that may be local cache in the browser. Perhaps try using a new browsing session to remove cache from the picture. In IE, go to File > New Session, or go to In Private browsing, in Chrome go new Incognito browser (Ctrl + Shift + N).

That's been my experience, at least.

Furbee


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.


Rich

unread,
Feb 19, 2012, 10:00:56 AM2/19/12
to Django users
I found my problem... I had 2 different templates created with the
same code and I was using the wrong one
Reply all
Reply to author
Forward
Message has been deleted
0 new messages