#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>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018cfb13cf45-babe7557-fb90-44f7-9936-e236e20425c5-000000%40eu-central-1.amazonses.com.

Reply via email to