diff --git a/pybd/settings/__init__.py b/pybd/settings/__init__.py new file mode 100644 index 0000000..8f607e4 --- /dev/null +++ b/pybd/settings/__init__.py @@ -0,0 +1 @@ +from .local import * diff --git a/pybd/settings.py b/pybd/settings/common.py similarity index 94% rename from pybd/settings.py rename to pybd/settings/common.py index fcc7b66..c55766c 100644 --- a/pybd/settings.py +++ b/pybd/settings/common.py @@ -13,7 +13,9 @@ import os # 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.dirname(os.path.abspath(__file__))) +) # Quick-start development settings - unsuitable for production @@ -22,9 +24,6 @@ # SECURITY WARNING: keep the secret key used in production secret! SECRET_KEY = 'o33yvx*4!lm6ry%%qxqybmd%m5p53bwp(9$8@i059elcova@h6' -# SECURITY WARNING: don't run with debug turned on in production! -DEBUG = True - ALLOWED_HOSTS = [] @@ -105,7 +104,7 @@ LANGUAGE_CODE = 'en-us' -TIME_ZONE = 'UTC' +TIME_ZONE = 'Asia/Dhaka' USE_I18N = True diff --git a/pybd/settings/local.py b/pybd/settings/local.py new file mode 100644 index 0000000..4965886 --- /dev/null +++ b/pybd/settings/local.py @@ -0,0 +1,5 @@ +from .common import * + + +# SECURITY WARNING: don't run with debug turned on in production! +DEBUG = True diff --git a/pybd/settings/production.py b/pybd/settings/production.py new file mode 100644 index 0000000..7815310 --- /dev/null +++ b/pybd/settings/production.py @@ -0,0 +1,5 @@ +from .common import * + + +# SECURITY WARNING: don't run with debug turned on in production! +DEBUG = False