django-paginas /

Filename Size Date modified Message
59 B
1.6 KB
265 B
1.8 KB
1.4 KB

Django Páginas

(django-paginas is no longer supported!)

Django Páginas is a pluggable flat pages application for Django Web Framework based on django.contrib.flatpages.

Project page

Installing & Setup

  1. Install django-paginas (available on PyPI, so you can install it running pip install django-paginas);
  2. Add paginas to your INSTALLED_APPS setting;

Then either:

  1. Add an entry in your URLconf. For example:

    urlpatterns = patterns('',
        ('^pages/', include('paginas.urls')),


  1. Add 'paginas.middleware.PageFallbackMiddleware' to your MIDDLEWARE_CLASSES setting [1];
  2. Run the command syncdb --migrate.


Available settings:

Automatically select the correspondent template on Page creation.


Copyright (c) 2012-, Guilherme Gondim
Copyright (c) 2005-2012, Django Software Foundation and individual contributors

Django Redator is Software Libre; you can redistribute it and/or modify it under the terms of the BSD (3-clause) License.

You should have received a copy of the BSD License along with this program; see the file LICENSE.

[1]Generally, you can put PageFallbackMiddleware at the end of the list. This means it will run first when processing the response, and ensures that any other response-processing middlewares see the real flatpage response rather than the 404.