umap/manage.py
2013-01-08 19:54:50 +01:00

16 lines
433 B
Python

#!/usr/bin/env python
import os
import sys
# 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'))
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE",
"umap.settings.local")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)