Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

의존성 추가: django-constance #24

Merged
merged 9 commits into from
Feb 24, 2023
Merged
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
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -157,5 +157,4 @@ cython_debug/
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
# and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/

.idea/
15 changes: 15 additions & 0 deletions pyconkr/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@
# add-on
"rest_framework",
"django_summernote",
"constance",
"constance.backends.database",
# apps
"sponsor",
]
Expand Down Expand Up @@ -130,3 +132,16 @@
# django-summernote
MEDIA_URL = "/media/"
MEDIA_ROOT = os.path.join(BASE_DIR, "media/")

# django-constance
CONSTANCE_BACKEND = "constance.backends.database.DatabaseBackend"
CONSTANCE_CONFIG = {
"SLACK_SECRET": (
"",
"Slack 알림 전송에 사용할 Secret",
),
"SPONSOR_NOTI_CHANNEL": (
"",
"후원사 변동사항에 대한 알림을 보낼 채널",
),
}
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ tzdata==2022.7
sorl-thumbnail==12.9.0
django-summernote==0.8.20.0
Pillow==9.4.0
django-constance==2.9.1
django-picklefield==3.1