Skip to content

Error "No Newsletter matches the given query." depending on site setting of newsletter #354

Open
@TommyK82

Description

@TommyK82

HI,

I found your app, which is really amazing.

Anyway I am reading the docs for 2 days and cant find an answer.

I installed everything like in the docs (I am using django 3.1.3 ; django-newsletter 0.9.1; python 3.8.5)

Newsletter sign up works when I set "example.com" site for the newsletter "test3":
[06/Dec/2020 19:32:22] "GET / HTTP/1.1" 200 11928
[06/Dec/2020 19:32:28] "POST /newsletter/test3/subscribe/ HTTP/1.1" 302 0
[06/Dec/2020 19:32:28] "GET /newsletter/test3/subscribe/email-sent/ HTTP/1.1" 200 469

But If I set the localhost "http://127.0.0.1:8000/" as site for the newsletter "test3" then nothing works
Not Found: /newsletter/test3/subscribe/
[06/Dec/2020 19:38:45] "POST /newsletter/test3/subscribe/ HTTP/1.1" 404 1787

Error-page:
Page not found (404)
Request Method: POST
Request URL: http://127.0.0.1:8000/newsletter/test3/subscribe/
Raised by: newsletter.views.SubscribeRequestView

No Newsletter matches the given query.

Any clue? Thanks a lot

Below again the setting as picture, newsletter sign up working or not depending on "site" setting

setting

P.S.: another "issue" I have is copying the ‘stub’-templates to the project_dir does not change a thing, there are still the templates from the package linked

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions