src/manage.py
author ymh <ymh.work@gmail.com>
Mon, 02 Dec 2013 23:26:46 +0100
changeset 159 dbc7cce33ace
parent 0 81e7900b06a7
permissions -rw-r--r--
check that the value returned is an url. This effectively close bug #13, but really is a hack where the value should be tested to belong to a given thesaurus.

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

if __name__ == "__main__":
    os.environ.setdefault("DJANGO_SETTINGS_MODULE", "p4l.settings")

    from django.core.management import execute_from_command_line

    execute_from_command_line(sys.argv)