Move tools to management commands (non-working ones), switch manage.py to use venv

This commit is contained in:
2011-03-11 12:41:57 +00:00
parent fcda27d75c
commit 4bb9a43203
8 changed files with 132 additions and 51 deletions

View File

@@ -1,4 +1,15 @@
#!/usr/bin/env python
import sys
import os.path
pwd = os.path.dirname(os.path.abspath(__file__))
activate_this = os.path.join(pwd,'env','bin','activate_this.py')
try:
execfile(activate_this, dict(__file__=activate_this))
except IOError:
sys.stderr.write('Error activating virtualenv\n')
sys.exit(1)
from django.core.management import execute_manager
try:
import settings # Assumed to be in the same directory.