basically i ve a form in a class CollFormAdmin where i am overriding two
fields to MultipleChoiceField where values are changed dynamically based on
a pickle file value
then in CollAdmin class


class CollAdmin(admin.ModelAdmin):

   form=CollFormAdmin

but i want to change the value of MultipleChoiceField dynamically. But it
appears like the class is loaded only once and the form is taking the
previous old value ie d first one. Thats y i asked a way to restart the
server in the code

please help me


On Mon, Apr 23, 2012 at 8:35 PM, dummyman dummyman <tempo...@gmail.com>wrote:

> hi
>
> but how do i do it when the server is running ??
> i basically want to stop it and restart it in the program
> is it possible ?
>
> On Mon, Apr 23, 2012 at 6:54 PM, Joel Goldstick 
> <joel.goldst...@gmail.com>wrote:
>
>> On Mon, Apr 23, 20ogr12 at 9:16 AM, Joel Goldstick
>>
>> <joel.goldst...@gmail.com> wrote:
>> > On Mon, Apr 23, 2012 at 6:10 AM, dummyman dummyman <tempo...@gmail.com>
>> wrote:
>> >> how to restart a django development server programmatically in python ?
>> >>
>> >> --
>> >> You received this message because you are subscribed to the Google
>> Groups
>> >> "Django users" group.
>> >> To post to this group, send email to django-users@googlegroups.com.
>> >> To unsubscribe from this group, send email to
>> >> django-users+unsubscr...@googlegroups.com.
>> >> For more options, visit this group at
>> >> http://groups.google.com/group/django-users?hl=en.
>> >
>> > python manage.py runserver
>> >
>> oops I spoke too soon.  Didn't see you want to do this
>> programatically.  But I suppose you could just invoke that line using
>> subprocess?
>> http://docs.python.org/library/subprocess.html#module-subprocess
>> > --
>> > Joel Goldstick
>>
>>
>>
>> --
>> Joel Goldstick
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To post to this group, send email to django-users@googlegroups.com.
>> To unsubscribe from this group, send email to
>> django-users+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/django-users?hl=en.
>>
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to