if you are using uwsgi to run you django app this is very easy, just do a
uwsgi reload (different than restart), it will reload you django app,
without even closing the socket FD, meaning your users won't notice, well
they may notice that will be a little delay on one request, but tht will be
transparent, they won't see

On Tue, Mar 17, 2015 at 3:27 PM, Guilherme Leal <[email protected]> wrote:

> Is there a way to "reload" a django app?
> What i need is basically, re-run the Apps.populate, to trigger the
> discover of new apps and models.
>
> and now you're asking "What would he want this?".
>
> Basically, i'm trying to create a feature where the users of my project
> (who also will be devellopers) can create apps and models on the fly. Also,
> i checked for the EAV and Dynamo implementations, and particularly didn't
> liked neither at all (saving the model config on DB dont seems to be fast
> enough to any production app, specially if you're especting to have
> hundreds of models).
>
> Any help/advice would be apreciated.
> Thx in advance!
>
> --
> 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 [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAOs3Lp5ossyVvK%3DfrM1S602XtC%2BccPF_jjG%3DjO4RbZN7RG%3D3Og%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAOs3Lp5ossyVvK%3DfrM1S602XtC%2BccPF_jjG%3DjO4RbZN7RG%3D3Og%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAFWa6tJT%3DWGJZHWFpTb8BUq1L903QW7GB%3DdTmfaF9e6EkCpmHg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to