Fixed the manage command so it adds our own import path to the Python path automatically.

- Legacy-Id: 6112
This commit is contained in:
Henrik Levkowetz 2013-09-09 15:31:10 +00:00
parent 0a45268915
commit c93e5cc914

View file

@ -8,6 +8,10 @@ warnings.filterwarnings("ignore", message="the sets module is deprecated")
warnings.filterwarnings("ignore", message="the md5 module is deprecated; use hashlib instead")
warnings.filterwarnings("ignore", message="the sha module is deprecated; use the hashlib module instead")
import os
import sys
sys.path.insert(0, os.path.dirname(os.path.dirname(__file__)) )
from django.core.management import execute_manager
try:
import settings # Assumed to be in the same directory.