clone from upstream lithium project

This commit is contained in:
wsvincent 2018-02-15 12:53:04 -05:00 committed by badbl0cks
parent 6f5167c24f
commit f946e4933a
56 changed files with 754 additions and 503 deletions

View file

@ -1,9 +1,12 @@
#!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "djangox.settings")
def main():
"""Run administrative tasks."""
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "django_project.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
@ -13,3 +16,7 @@ if __name__ == "__main__":
"forget to activate a virtual environment?"
) from exc
execute_from_command_line(sys.argv)
if __name__ == "__main__":
main()