manage.py runserver should only need to be ran after making changes to your 
code. 

Make your data changes in admin on one tab.
load your html on another tab.
Make change B in admin.
On the second tab, hit refresh.

Make changes to your code.
manage.py runserver
Go to your admin tab of the browser, hit refresh
Go to your html tab, hit refresh

On Tuesday, September 19, 2017 at 6:42:59 AM UTC-7, 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+unsubscr...@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/bbb81fdd-23f3-487c-9676-17eb407b19c0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to