I have a django project which will be taking data from a db that is
already being managed and maintained by another set of programs and
read it and display it for reporting and for determineing possible
problems and then in some cases making changes back into the system
through other means (not by making changes to db)

I have created a set of functions and classes to connect to the db and
request the data and then display the data rendered as a page, however
what I'm finding is that when the data is being changed from the main
set of applications connecting to and using this db and then i refresh
my browser django is still displaying old data in some cases, now I've
looked through all the cacheing documentation and as far as I can find
I've disabled all cacheing and I know it's not the browsers' cacheing
because when I telnet and request the pages it's comeing back as the
old data not the new data, and if I run the python code outside of
django just to output the data I'm passing into the templates it's
updating timely

in my views.py for the particular pages in question I have

from django.views.decorators.cache import never_cache

@never_cache
def index(request):

before every function for rendering data

in my settings.py I have

MIDDLEWARE_CLASSES = (
        'django.middleware.common.CommonMiddleware',
)

TEMPLATE_LOADERS = (
        'django.template.loaders.filesystem.load_template_source',
)

I removed every thing that I thought wasn't needed for this situation
to make sure there isn't anything I'm missing that could cause this

As far as I can tell there is no reason for this data to be outdated
on browser refresh, I've tried looking through the documentation and
other places to find what could be causing this

Any Ideas?

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

Reply via email to