✨ Feat: [#103] mail 서버 계정 기능 완료
This commit is contained in:
@@ -36,6 +36,8 @@ SOLAPI_API_KEY = env('SOLAPI_API_KEY')
|
||||
SOLAPI_API_SECRET = env('SOLAPI_API_SECRET')
|
||||
FROM_PHONE_NUMBER = env('FROM_PHONE_NUMBER')
|
||||
|
||||
MAIL_SIGNUP_ENABLED = os.getenv("MAIL_SIGNUP_ENABLED", "0") == "1"
|
||||
|
||||
DEBUG = env.bool('DEBUG')
|
||||
|
||||
ALLOWED_HOSTS = ['*']
|
||||
@@ -67,6 +69,7 @@ INSTALLED_APPS = [
|
||||
'notifications',
|
||||
'nocodetools',
|
||||
'homes',
|
||||
'mail'
|
||||
]
|
||||
|
||||
MIDDLEWARE = [
|
||||
|
||||
@@ -15,5 +15,10 @@ urlpatterns = [
|
||||
path('api/home/', include('homes.urls')),
|
||||
] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
|
||||
|
||||
if getattr(settings, "MAIL_SIGNUP_ENABLED", False):
|
||||
urlpatterns += [
|
||||
path('api/mail/', include('mail.urls')),
|
||||
]
|
||||
|
||||
# if settings.DEBUG:
|
||||
# urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
|
||||
|
||||
Reference in New Issue
Block a user