Commit e3afa3ee authored by chris's avatar chris
Browse files assume dev instance by default (instance settings are set according to directory name)

parent 4f5b9ae7
......@@ -7,6 +7,10 @@ if __name__ == "__main__":
project = os.path.split(os.path.abspath(os.path.dirname(__file__)))[-1]
# Settings are set according to directory name
# Assume developement environment by default
if project == 'repanier':
project = 'mysite'
django_settings = "%s.common_settings" % project
os.environ.setdefault(os_environ, django_settings)
if os.environ.get(os_environ) != django_settings:
......@@ -15,4 +19,4 @@ if __name__ == "__main__":
from import execute_from_command_line
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment