]>
Commit | Line | Data |
---|---|---|
26235f08 MF |
1 | #!/usr/bin/env python |
2 | import os | |
3 | import sys | |
4 | ||
5 | if __name__ == "__main__": | |
6 | os.environ.setdefault("DJANGO_SETTINGS_MODULE", "tranquillity.settings") | |
7 | try: | |
8 | from django.core.management import execute_from_command_line | |
9 | except ImportError as exc: | |
10 | raise ImportError( | |
11 | "Couldn't import Django. Are you sure it's installed and " | |
12 | "available on your PYTHONPATH environment variable? Did you " | |
13 | "forget to activate a virtual environment?" | |
14 | ) from exc | |
15 | execute_from_command_line(sys.argv) |