Mercurial > public > madeira
comparison manage.py @ 148:0eca2da07913
Make manage.py use local settings by default.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Fri, 04 Jul 2014 14:24:43 -0500 |
parents | e2868ad47a1e |
children |
comparison
equal
deleted
inserted
replaced
147:b9b7afbfcb7e | 148:0eca2da07913 |
---|---|
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 import os | 2 import os |
3 import sys | 3 import sys |
4 | 4 |
5 if __name__ == "__main__": | 5 if __name__ == "__main__": |
6 os.environ.setdefault("DJANGO_SETTINGS_MODULE", "madeira.settings") | 6 os.environ.setdefault("DJANGO_SETTINGS_MODULE", "madeira.settings.local") |
7 | 7 |
8 from django.core.management import execute_from_command_line | 8 from django.core.management import execute_from_command_line |
9 | 9 |
10 execute_from_command_line(sys.argv) | 10 execute_from_command_line(sys.argv) |