umap/manage.py

17 lines
433 B
Python
Raw Normal View History

2012-11-20 10:47:19 +01:00
#!/usr/bin/env python
import os
import sys
2013-01-08 19:52:05 +01:00
# SeSQL look for "sesql_config" in the sys.path...
# FIXME: PR to SeSQL to be able to define the import path
# with an env var
sys.path.insert(0, os.path.abspath('umap'))
2012-11-20 10:47:19 +01:00
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE",
2013-01-02 15:49:20 +01:00
"umap.settings.local")
2012-11-20 10:47:19 +01:00
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)