What can cause a page error not found in flatpages?

I just installed the django flatpages application after http://docs.djangoproject.com/en/dev/ref/contrib/flatpages/

Everything is fine, but when I link to a flat page, I always get:

Page not found (404)
Request Method:     GET
Request URL:    http://example.com/about/

[..]

The current URL, about/, didn't match any of these.

what is it? what can cause this error?

thanks in advance...

+3
source share
1 answer
  • Do you have FlatpageFallbackMiddleware in the MIDDLEWARE_CLASSES list?

  • Is there a specific flat page in your database with / about / in the URL field?

  • ? Site , SITE_ID settings.py. / , , . , .

URL- http://example.com/about/" 404 - , , ? , URL- example.com, Django.

+6

Source: https://habr.com/ru/post/1716946/


All Articles