Created
January 17, 2012 23:29
-
-
Save andymckay/1629768 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~/sandboxes/zamboni(multiple-sites) $ ./manage.py --settings=market_site.settings_local runserver 0.0.0.0:8000 | |
Validating models... | |
0 errors found | |
Django version 1.4 pre-alpha, using settings 'market_site.settings_local' | |
~/sandboxes/zamboni(multiple-sites) $ ./manage.py --settings=addons_site.settings_local runserver 0.0.0.0:8000 | |
Validating models... | |
0 errors found | |
Django version 1.4 pre-alpha, using settings 'addons_site.settings_local' | |
----- | |
setting = os.environ.get('DJANGO_SETTINGS_MODULE', | |
'addons_site.settings_local') | |
for num, arg in enumerate(sys.argv): | |
if arg.startswith('--settings='): | |
setting = arg.split('--settings=')[1] | |
del sys.argv[num] | |
break | |
settings = importlib.import_module(setting) | |
setup_environ(settings) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment