Friday, March 28, 2014

Re: settings set in stone on import?

Hi Erik,

hey, that worked! I had to reload both the django.conf and modules, but after doing that calling Django management commands that depend on valid settings seems to work just fine. Thank you for the suggestion.

Before you replied I was contemplating just calling the call_command('startproject', ...) function in another process using multiprocessing. Maybe I'll try that just to see if it'd work, but I'll be sticking with reloading.


On Friday, March 28, 2014 2:43:56 PM UTC+1, Erik Cederstrand wrote:
Hello Tin,

Den 27/03/2014 kl. 22.45 skrev Tin Tvrtković <>:

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

The standard Python built-in function reload() should be able to do this.


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
To post to this group, send email to
Visit this group at
To view this discussion on the web visit
For more options, visit

No comments:

Post a Comment