|
@@ -19,8 +19,13 @@ VERSION = '1.0.0'
|
|
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
|
|
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
|
|
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
|
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
|
|
|
|
|
-from .const import *
|
|
|
|
-from .app_settings import *
|
|
|
|
|
|
+
|
|
|
|
+if __name__ == 'settings':
|
|
|
|
+ from const import *
|
|
|
|
+ from app_settings import *
|
|
|
|
+else:
|
|
|
|
+ from .const import *
|
|
|
|
+ from .app_settings import *
|
|
|
|
|
|
# Quick-start development settings - unsuitable for production
|
|
# Quick-start development settings - unsuitable for production
|
|
# See https://docs.djangoproject.com/en/1.9/howto/deployment/checklist/
|
|
# See https://docs.djangoproject.com/en/1.9/howto/deployment/checklist/
|