| author | ymh <ymh.work@gmail.com> |
| Mon, 26 Nov 2012 17:01:05 +0100 | |
| changeset 83 | 07c9aa7de765 |
| parent 37 | b4ed8cdc654c |
| permissions | -rw-r--r-- |
|
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) |