Re: Populate choices from existing values in a model field

2020-06-23 Thread Patrick Carra
I'm not directly modifying any code in a .py file I am simply adding a value to the database table but I am unable to see the change reflected in my drop down lists until I restart the server. Is there a better way of populating choices for my drop down menu? Or could I simply add a cron job

Re: Populate choices from existing values in a model field

2020-06-20 Thread Integr@te System
Hi Patrick, Plz review for your suitable case: https://stackoverflow.com/questions/3742734/django-restart-server-or-httpd Nice. On Sat, Jun 20, 2020, 1:32 AM Patrick Carra wrote: > I am trying to read distinct values from a model field and use the tuple > list to populate the choices in a

Populate choices from existing values in a model field

2020-06-19 Thread Patrick Carra
I am trying to read distinct values from a model field and use the tuple list to populate the choices in a Form. The problem I have is that every time a new value is added I must reset the httpd server in order to include the new value in the form. I have researched and tried this a few