#7257: Flatpage view returns 404 unless url contains trailing slash
-----------------------------------+----------------------------------------
          Reporter:  sean          |         Owner:  anonymous
            Status:  reopened      |     Milestone:           
         Component:  Contrib apps  |       Version:  SVN      
        Resolution:                |      Keywords:  flatpages
             Stage:  Unreviewed    |     Has_patch:  1        
        Needs_docs:  0             |   Needs_tests:  0        
Needs_better_patch:  0             |  
-----------------------------------+----------------------------------------
Changes (by [EMAIL PROTECTED]):

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

Comment:

 This doesn't work in django trunk (r7877) and I have CommonMiddleware and
 APPEND_SLASH=True.

 This seems to be because of the way CommonMiddleware detects if a URL
 already exists - it looks up URLs in urlresolvers.

 As FlatPages doesn't talk to urlresolvers - no page in FlatPages will ever
 resolve.

 The attached patch (flatpages.patch) forces a redirect since I don't like
 the idea of automatically adding new URLs that will respond to requests.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/7257#comment:4>
Django Code <http://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 post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to