Opened 10 months ago
Last modified 10 months ago
#35106 closed Uncategorized
Flatpages App - Installation instructions — at Initial Version
Reported by: | Erewh0 | Owned by: | nobody |
---|---|---|---|
Component: | Documentation | Version: | 4.2 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Step 3 : says to either add an entry to URLconf or add FlatpageFallbackMiddleware to MIDDLEWARE setting
I tried implementing using URLconf without success, kept the URL conf and added MIDDLEWARE setting - no change to url path and Flat page rendered .... it seems that either MIDDLWARE setting is required or urlpattern setup instructuons aren't correct / complete
Add an entry in your URLconf. For example:
urlpatterns = [
path("pages/", include("django.contrib.flatpages.urls")),
]
or:
Add 'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware' to your MIDDLEWARE setting.