Thursday, November 2, 2017

Re: Adding data via admin not visible on html template until restart server (python manage.py runserver)

In the end I created a new app  and model and it worked correctly 
I never solved the original issue






On Tuesday, 19 September 2017 15:42:59 UTC+2, avtar sandhu wrote:

Please can anyone help me


I have a Django Model

class Event(models.Model): scheduled_event = models.BooleanField(default=True) category = models.CharField("category ", max_length = 30)

registered in admin

class PostEvent(admin.ModelAdmin): admin.site.register(Event, PostEvent)

I can add delete etc ok in Admin

However the data is not refreshed in my html template until i restart the server

python manage.py runserver


How can i make the changes dynamic.  dont want to restart the server anytime a user makes some content change 


All help would be appreciated 

--
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/23422415-cc1d-4155-9e0e-a0c442f10790%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment