Hi,
it's hard to tell without more information. It could be a caching issue, if you are using a cache. If possible, please show us the code of the view that is causing the error (if it's not too long).
Regards,
A.
Antonis Christofides http://djangodeployment.com
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/a8e40b18-2cec-4efc-8b12-a2d788161ee8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
records = models.Record.objects.all()
def my_view(request):
...
You need to put your variables inside views if you want them fresh every view. Otherwise Django will fetch it when you start the server and won't do it again.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/0f5eb0cf-f4ba-5044-06cd-a8bab97f0dba%40djangodeployment.com.
1) You hit Ctrl+R or otherwise refresh the page in the browser, and it still shows the old data?
2) How do you know the new record is in the database?
3) What is your RDBMS?
4) Are you using any cache middleware?
Antonis Christofides http://djangodeployment.com
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/A309CA2C-C770-42FE-86C9-52BEA0CE4C60%40gmail.com.