Answer the question
In order to leave comments, you need to log in
Django link, how to correctly describe a link for a plugin?
Hello, there is a news plugin cmsplugin_newsplus, the installation and work goes well, but when I go to the news, I get a 404 error
Request Method: GET
Request URL: http://127.0.0.1:8000/en/en/news/2015/07/05/123/
Using the URLconf defined in news.urls, Django tried these URL patterns, in this order:
^media/(?P<path>.*)$
^static\/(?P<path>.*)$
^en/ ^admin/
^en/ ^sitemap\.xml$
^en/ ^select2/
^en/ ^ ^(?P<slug>[0-9A-Za-z-_.//]+)/$ [name='pages-details-by-slug']
^en/ ^ ^$ [name='pages-root']
^en/ ^news/
The current URL, /en/en/news/2015/07/05/123/, didn't match any of these.
You're seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard 404 page.
url(r'^news/', include('cmsplugin_newsplus.urls')),
Answer the question
In order to leave comments, you need to log in
You have /en/en in the address bar, although, most likely, it should just be /en - is the link formed incorrectly somewhere?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question