Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Simple application that allows you to organize pages in a tree
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
page
.coveragerc
.gitignore
.travis.yml
LICENSE
MANIFEST.in
README.md
run_tests.py
setup.py

README.md

Django Clever Pages

PyPI version Travis Build Coverage Status PyPi downloads

Simple application that allows you to organize pages in a tree

Idea

Is located at the top level home page. Other pages are linked to the home page. Thus obtaining a tree. On the basis of field slug and parents pages generated path when saving. In the view gets page by unique path from the database.

Features

  • Organize pages in tree structure
  • Includes CKEditor
  • Auto build path by page slug
  • Generate page url, include all parents
  • Drag-n-dtop interface in admin
  • Include Search indices for haystack (need haystack >= 2.x). Sphinx in plans
  • Include meta tags via django-meta

Instalation

From Pypi

pip install django-clever-pages 

From github

pip install git+git://github.com/artofhuman/django-clever-pages

Add this line to your settings.py

    INSTALLED_APPS = (
        'feincms',
        'meta',
        'ckeditor',
        'page',
    )

Add it to end urls.py

    urlpatterns = patterns('',
        ('', include('page.urls'))
    )

You can define more templates in settings.py

    PAGE_TEMPLATES = (
        ('contacts', u'Contacts'),
    )

Meta tags in base.html

{% load meta %}
<head>
    <title>{{ meta.title }}</title>
    {% if meta.description %}{% meta 'description' meta.description %}{% endif %}
    {% if meta.keywords %}{% meta_list 'keywords' meta.keywords %}{% endif %}
</head>

TODO

  • Add locales
  • Add section about haystack
  • Add sphinx integration
  • Add Etag cache

P.S. Sorry for my bad english :)

Bitdeli Badge

Something went wrong with that request. Please try again.