updated manage.py
This commit is contained in:
parent
e96fe0bd5e
commit
e3c79c056c
1 changed files with 6 additions and 17 deletions
23
manage.py
23
manage.py
|
@ -1,20 +1,9 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
import sys
|
import os, sys
|
||||||
|
|
||||||
try:
|
|
||||||
import pinax
|
|
||||||
except ImportError:
|
|
||||||
sys.stderr.write("Error: Can't import Pinax. Make sure you are in a "
|
|
||||||
"virtual environment that has\nPinax installed.\n")
|
|
||||||
sys.exit(1)
|
|
||||||
else:
|
|
||||||
import pinax.env
|
|
||||||
|
|
||||||
from django.core.management import execute_from_command_line
|
|
||||||
|
|
||||||
|
|
||||||
pinax.env.setup_environ(__file__)
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
execute_from_command_line()
|
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "symposion.settings")
|
||||||
|
|
||||||
|
from django.core.management import execute_from_command_line
|
||||||
|
|
||||||
|
execute_from_command_line(sys.argv)
|
||||||
|
|
Loading…
Reference in a new issue