feat: add newsletter with mailjet

This commit is contained in:
Konstantin 2024-10-07 09:26:43 +02:00
parent ce02ef9741
commit 483b9f3ba0
14 changed files with 53 additions and 2 deletions

View file

@ -29,6 +29,7 @@ INSTALLED_APPS = [
"blog",
"home",
"search",
"newsletter",
"wagtailcodeblock",
"wagtailseo",
"wagtail.contrib.settings",

View file

@ -8,6 +8,7 @@ from wagtail import urls as wagtail_urls
from wagtail.documents import urls as wagtaildocs_urls
from blog.feeds import RssBlogFeed
from newsletter import views as newsletter_views
from search import views as search_views
from wagtail.contrib.sitemaps.views import sitemap
from base.views import KeyView
@ -20,7 +21,8 @@ urlpatterns = [
path("blog/feed/", RssBlogFeed(), name="blog_feed"),
path('sitemap.xml', sitemap),
path('robots.txt', TemplateView.as_view(template_name="robots.txt", content_type="text/plain")),
path('<str:key>.txt', KeyView.as_view())
path('<str:key>.txt', KeyView.as_view()),
path('newsletter/thanks', newsletter_views.thanks, name='thanks')
]
if settings.DEBUG: