added news mail template and task without celery delay
This commit is contained in:
parent
90ae87a14e
commit
50b00e5b6d
|
|
@ -397,6 +397,7 @@ PASSWORD_RESET_TIMEOUT_DAYS = 1
|
|||
RESETTING_TOKEN_TEMPLATE = 'account/password_reset_email.html'
|
||||
CHANGE_EMAIL_TEMPLATE = 'account/change_email.html'
|
||||
CONFIRM_EMAIL_TEMPLATE = 'authorization/confirm_email.html'
|
||||
NEWS_EMAIL_TEMPLATE = "news/news_email.html"
|
||||
|
||||
|
||||
# COOKIES
|
||||
|
|
|
|||
20
project/templates/news/news_email.html
Normal file
20
project/templates/news/news_email.html
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>{{ title }}</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>{{ title }}</h1>
|
||||
|
||||
{% if subtitle %}
|
||||
<h3>{{ subtitle }}</h3>
|
||||
{% endif %}
|
||||
|
||||
<p>{{ description }} </p>
|
||||
|
||||
https://{{ domain_uri }}{% url 'web:notification:unsubscribe' code %}
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
|
@ -23,7 +23,7 @@ urlpatterns = [
|
|||
path('collections/', include('collection.urls.web')),
|
||||
path('establishments/', include('establishment.urls.web')),
|
||||
path('news/', include('news.urls.web')),
|
||||
path('notifications/', include('notification.urls.web')),
|
||||
path('notifications/', include(('notification.urls.web', "notification"), namespace='notification')),
|
||||
path('partner/', include('partner.urls.web')),
|
||||
path('location/', include('location.urls.web')),
|
||||
path('main/', include('main.urls')),
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user