Skip to content

Commit eb08c61

Browse files
committed
update: constance의 backend로 DB 지정
1 parent 699374c commit eb08c61

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

pyconkr/settings.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
"rest_framework",
4242
"django_summernote",
4343
"constance",
44+
"constance.backends.database",
4445
# apps
4546
"sponsor",
4647
]
@@ -132,6 +133,8 @@
132133
MEDIA_URL = "/media/"
133134
MEDIA_ROOT = os.path.join(BASE_DIR, "media/")
134135

136+
# django-constance
137+
CONSTANCE_BACKEND = 'constance.backends.database.DatabaseBackend'
135138
CONSTANCE_CONFIG = {
136139
"SLACK_SECRET": (
137140
"",

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ sorl-thumbnail==12.9.0
1313
django-summernote==0.8.20.0
1414
Pillow==9.4.0
1515
django-constance==2.9.1
16+
django-picklefield==3.1

0 commit comments

Comments
 (0)