[Django] #35106: Flatpages App - Installation instructions

10 views
Skip to first unread message

Django

unread,
Jan 11, 2024, 6:34:24 PM1/11/24
to django-...@googlegroups.com
#35106: Flatpages App - Installation instructions
-----------------------------------------+------------------------
Reporter: erewh0 | Owner: nobody
Type: Uncategorized | Status: new
Component: Documentation | Version: 4.2
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-----------------------------------------+------------------------
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.

--
Ticket URL: <https://code.djangoproject.com/ticket/35106>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Jan 11, 2024, 7:30:32 PM1/11/24
to django-...@googlegroups.com
#35106: Flatpages App - Installation instructions
-------------------------------+--------------------------------------
Reporter: Erewh0 | Owner: nobody
Type: Uncategorized | Status: closed
Component: Documentation | Version: 4.2
Severity: Normal | Resolution: worksforme

Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------
Changes (by Tim Graham):

* status: new => closed
* resolution: => worksforme


Old 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.

New 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:

{{{#!python


urlpatterns = [
path("pages/", include("django.contrib.flatpages.urls")),
]
}}}
or:

Add `'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware'` to
your `MIDDLEWARE` setting.

--

Comment:

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.

--
Ticket URL: <https://code.djangoproject.com/ticket/35106#comment:1>

Reply all
Reply to author
Forward
0 new messages