Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions pybd/settings/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from .local import *
9 changes: 4 additions & 5 deletions pybd/settings.py → pybd/settings/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 = []


Expand Down Expand Up @@ -105,7 +104,7 @@

LANGUAGE_CODE = 'en-us'

TIME_ZONE = 'UTC'
TIME_ZONE = 'Asia/Dhaka'

USE_I18N = True

Expand Down
5 changes: 5 additions & 0 deletions pybd/settings/local.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from .common import *


# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
5 changes: 5 additions & 0 deletions pybd/settings/production.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from .common import *


# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = False