src/manage.py
author ymh <ymh.work@gmail.com>
Wed, 27 Jun 2018 16:00:29 +0200
changeset 1 3b0a8a6e685e
parent 0 df27f9610c82
permissions -rw-r--r--
* Move importcollection and importmetacategories commands to the generic project * Add site synchronisation script * Add some test data * remove dev settings * Add setup file to build the application * update .hgignore

#!/usr/bin/env python
import os
import sys

if __name__ == "__main__":
    os.environ.setdefault("DJANGO_SETTINGS_MODULE", "iconolab_episteme.settings.dev")
    try:
        from django.core.management import execute_from_command_line
    except ImportError as exc:
        raise ImportError(
            "Couldn't import Django. Are you sure it's installed and "
            "available on your PYTHONPATH environment variable? Did you "
            "forget to activate a virtual environment?"
        ) from exc
    execute_from_command_line(sys.argv)