Friday, March 28, 2014

Re: settings set in stone on import?

Hello Tin,

Den 27/03/2014 kl. 22.45 skrev Tin Tvrtković <tinchester@gmail.com>:

> Is there a way to make Django reread DJANGO_SETTINGS_MODULE after it has been imported? Also, it would seem django.core.management.call_command doesn't take a 'settings' keyword argument, like django-admin.py does.

The standard Python built-in function reload() http://docs.python.org/2.7/library/functions.html#reload should be able to do this.

Erik

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@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/623D186C-3633-4AB3-867B-17260CB406E3%40cederstrand.dk.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment