Wednesday, April 29, 2015

Django runserver needs restart on psql data changes

Hi all - I am working on a Django app that interacts with a psql database via a set of models. 

(1) There is a backend job which keeps updating the database via the same models. 

(2) I am creating a table with a view using django_tables2 - and giving it a custom dictionary to render using data from the psql database (via my Django models). 

(3) I am using 'runserver' fpr testing out my code. 

The rendering happens perfectly, but the problem is - when the client user does a browser refresh, the new data does not get reloaded until I restart the runserver. Is there something I am doing wrong with respect to getting the data from the database and into my view?

Appreciate any help you might give me on this topic,
-AB

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/08207f93-9c4a-4c98-8fca-6499e6735125%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment