You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I am trying to use the newsletter form in my index view. I included the form balize to my template as recommended in the readthedocs of the django-newsletter package:
{% csrf_token %}
E-mail:
Subscribe
I replaced the [NAME-OF-NEWSLETTER] with a newsletter name that I have added from the admin page.
Using the URLconf defined in website.urls, Django tried these URL patterns, in this order:
admin/
newsletter/ ^$ [name='newsletter_list']
newsletter/ ^(?P<newsletter_slug>[\w-]+)/$ [name='newsletter_detail']
newsletter/ ^(?P<newsletter_slug>[\w-]+)/subscribe/$ [name='newsletter_subscribe_request']
The current path, newsletter/welcomeback/subscribe/, matched the last one.
Can you please include an example of how to use newsletter forms ?
The text was updated successfully, but these errors were encountered:
Hello,
{% csrf_token %} E-mail: SubscribeI am trying to use the newsletter form in my index view. I included the form balize to my template as recommended in the readthedocs of the django-newsletter package:
I replaced the [NAME-OF-NEWSLETTER] with a newsletter name that I have added from the admin page.
but I got the next error:
Page not found (404)
No Newsletter matches the given query.
Request Method: POST
Request URL: http://127.0.0.1:8000/newsletter/welcomeback/subscribe/
Raised by: newsletter.views.SubscribeRequestView
Using the URLconf defined in website.urls, Django tried these URL patterns, in this order:
admin/
newsletter/ ^$ [name='newsletter_list']
newsletter/ ^(?P<newsletter_slug>[\w-]+)/$ [name='newsletter_detail']
newsletter/ ^(?P<newsletter_slug>[\w-]+)/subscribe/$ [name='newsletter_subscribe_request']
The current path, newsletter/welcomeback/subscribe/, matched the last one.
Can you please include an example of how to use newsletter forms ?
The text was updated successfully, but these errors were encountered: