Created
January 14, 2014 15:20
-
-
Save herberthamaral/8419973 to your computer and use it in GitHub Desktop.
Add --settings option to manage.py
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
#excerpt from manage.py | |
settings_arg = [arg for arg in sys.argv if arg.startswith('--settings=')] | |
if settings_arg: | |
settings = __import__(settings_arg[0].split('=')[1]) | |
else: | |
import settings |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment