Skip to content

Commit c93e5cc

Browse files
committed
Fixed the manage command so it adds our own import path to the Python path automatically.
- Legacy-Id: 6112
1 parent 0a45268 commit c93e5cc

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

ietf/manage.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
warnings.filterwarnings("ignore", message="the md5 module is deprecated; use hashlib instead")
99
warnings.filterwarnings("ignore", message="the sha module is deprecated; use the hashlib module instead")
1010

11+
import os
12+
import sys
13+
sys.path.insert(0, os.path.dirname(os.path.dirname(__file__)) )
14+
1115
from django.core.management import execute_manager
1216
try:
1317
import settings # Assumed to be in the same directory.

0 commit comments

Comments
 (0)