Skip to content

Commit e5fdf73

Browse files
authored
Merge pull request #24 from golony6449/feature/golony/add-dep
의존성 추가: django-constance
2 parents 25dd14a + 4097c23 commit e5fdf73

File tree

3 files changed

+18
-2
lines changed

3 files changed

+18
-2
lines changed

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,5 +157,4 @@ cython_debug/
157157
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
158158
# and can be added to the global gitignore or merged into this file. For a more nuclear
159159
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
160-
#.idea/
161-
160+
.idea/

pyconkr/settings.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@
4040
# add-on
4141
"rest_framework",
4242
"django_summernote",
43+
"constance",
44+
"constance.backends.database",
4345
# apps
4446
"sponsor",
4547
]
@@ -130,3 +132,16 @@
130132
# django-summernote
131133
MEDIA_URL = "/media/"
132134
MEDIA_ROOT = os.path.join(BASE_DIR, "media/")
135+
136+
# django-constance
137+
CONSTANCE_BACKEND = "constance.backends.database.DatabaseBackend"
138+
CONSTANCE_CONFIG = {
139+
"SLACK_SECRET": (
140+
"",
141+
"Slack 알림 전송에 사용할 Secret",
142+
),
143+
"SPONSOR_NOTI_CHANNEL": (
144+
"",
145+
"후원사 변동사항에 대한 알림을 보낼 채널",
146+
),
147+
}

requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,5 @@ tzdata==2022.7
1212
sorl-thumbnail==12.9.0
1313
django-summernote==0.8.20.0
1414
Pillow==9.4.0
15+
django-constance==2.9.1
16+
django-picklefield==3.1

0 commit comments

Comments
 (0)