src/manage.py
author ymh <ymh.work@gmail.com>
Wed, 07 Nov 2012 11:48:38 +0100
changeset 37 b4ed8cdc654c
permissions -rw-r--r--
update virtualenv + create the first file structure
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
37
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
     1
#!/usr/bin/env python
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
     2
import os
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
     3
import sys
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
     4
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
     5
if __name__ == "__main__":
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
     6
    os.environ.setdefault("DJANGO_SETTINGS_MODULE", "hp.settings")
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
     7
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
     8
    from django.core.management import execute_from_command_line
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
     9
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
    10
    execute_from_command_line(sys.argv)