Reload App

21 views
Skip to first unread message

Guilherme Leal

unread,
Mar 17, 2015, 9:27:48 AM3/17/15
to django...@googlegroups.com
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!

Avraham Serour

unread,
Mar 18, 2015, 4:51:31 AM3/18/15
to django...@googlegroups.com
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

--
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...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
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.
For more options, visit https://groups.google.com/d/optout.

Guilherme Leal

unread,
Mar 18, 2015, 7:25:56 AM3/18/15
to django...@googlegroups.com
I'm looking for a more intern way to do this. Like clean the app cache e rebuild it.

Reply all
Reply to author
Forward
0 new messages