Tuesday, September 26, 2017

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

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.marketing@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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@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.

No comments:

Post a Comment