Skip to content
This repository was archived by the owner on Jun 20, 2021. It is now read-only.

Commit 49a61d7

Browse files
author
regisf
committed
Set the database name into settings instead of private_settings
1 parent ff6ad97 commit 49a61d7

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Application/App/models/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
2222
"""
2323
from pymongo import MongoClient
24-
import private_settings
24+
import settings
2525

2626
_client = MongoClient('localhost')
27-
database = _client[private_settings.DB_NAME]
27+
database = _client[settings.DB_NAME]
2828

Application/settings.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,7 @@
2626
ROOT_TEMPLATE_PATH = os.path.join(ROOT_PATH, "templates")
2727
STATIC_FILES = os.path.join(ROOT_PATH, "assets")
2828

29+
DB_NAME = "pythonregex"
30+
2931
# Use --dev argement to set the app in dev mode
3032
DEBUG = False

0 commit comments

Comments
 (0)