Updating data via admin not visible on restful api without admin specified in url until restart server

21 views
Skip to first unread message

cnn.ma...@gmail.com

unread,
Sep 26, 2017, 9:32:50 PM9/26/17
to Django users

After login to my account via http://127.0.0.1:8000/admin, I update the data in field 'name' for 'demo'. I can see the updated data for 'name' by using http://127.0.0.1:8000/admin/demo. However, the field 'name' is showing the old data via url (restful api) http://127.0.0.1:8000/demo (NOTICE, no 'admin' in the url) until I manually restart the server via 'python manage.py runserver'.

Is this a known issue?

Xavier Ordoquy

unread,
Sep 27, 2017, 1:22:21 AM9/27/17
to 'Kristofer Pettijohn' via Django users
Hi,

You likely have an issue with scope in your code. Something similar to https://stackoverflow.com/questions/15395521/django-form-field-will-not-update-without-server-reset-instantiating-a-clas for example.

Regards,


Le 26 sept. 2017 à 21:42, cnn.ma...@gmail.com a écrit :


After login to my account via http://127.0.0.1:8000/admin, I update the data in field 'name' for 'demo'. I can see the updated data for 'name' by using http://127.0.0.1:8000/admin/demo. However, the field 'name' is showing the old data via url (restful api) http://127.0.0.1:8000/demo (NOTICE, no 'admin' in the url) until I manually restart the server via 'python manage.py runserver'.

Is this a known issue?

--
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/75a7bc85-5520-4ff9-a846-fde426b72927%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages