mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 06:42:16 +00:00
Move tools to management commands (non-working ones), switch manage.py to use venv
This commit is contained in:
11
manage.py
11
manage.py
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user