ROOT_PATH should not be appended to "sys.path"

there's no need to append ROOT_PATH to "sys.path" in the settings

Change-Id: Ib50031c468ce0cbc9758bb04b4d6f459bcacac28
This commit is contained in:
chao liu 2018-08-27 12:59:06 +08:00
parent a0d0c31fdd
commit e681bc2e2f
1 changed files with 0 additions and 3 deletions

View File

@ -19,7 +19,6 @@
import glob
import logging
import os
import sys
import warnings
from django.utils.translation import pgettext_lazy
@ -43,8 +42,6 @@ warnings.formatwarning = lambda message, category, *args, **kwargs: \
ROOT_PATH = os.path.dirname(os.path.abspath(__file__))
if ROOT_PATH not in sys.path:
sys.path.append(ROOT_PATH)
DEBUG = False