Opened 10 months ago
Closed 10 months ago
#35106 closed Uncategorized (worksforme)
Flatpages App - Installation instructions
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 (last modified by )
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.
Change History (1)
comment:1 by , 10 months ago
Description: | modified (diff) |
---|---|
Resolution: | → worksforme |
Status: | new → closed |
Since these instructions haven't changed for 10+ years, I'm guessing you made a mistake. If you debug the issue and find the instructions are at fault, feel free to reopen with an explanation.