Simple CMS for Django projects
JavaScript Python CSS HTML PHP
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
docs Simple changes for Django 1.8 thru 1.10 support Dec 22, 2016
pagelets Test and fix for python2.7 issue Jan 4, 2017
sample_project
.coveragerc
.gitignore
.travis.yml
LICENSE.txt Simple changes for Django 1.8 thru 1.10 support Dec 22, 2016
MANIFEST.in Change manifest dir. Jan 18, 2011
README.rst
run_tests.py
setup.cfg
setup.py Simple changes for Django 1.8 thru 1.10 support Dec 22, 2016
tox.ini

README.rst

django-pagelets

django-pagelets is a simple, flexible app for integrating static, unstructured content in a Django site.

For complete documentation, checkout http://django-pagelets.readthedocs.org

Features

  • "Pagelets" for adding small pieces of content to otherwise static templates
  • CMS "pages" which include any number of pagelets and, if needed, attachments
  • Different pagelet content types including HTML and Markdown
  • An integrated WYSIWYG editor (WYMeditor) which can be selectively enabled/disabled

Required Dependencies

  • Django >= 1.8
  • A Python version supported by your chosen Django version
  • Django admin site
  • django-taggit 0.12.1 or greater
  • django-selectable 0.9.0 or greater
  • The django.template.context_processors.request context processor

Optional Dependencies

Installation and Setup

  1. django-pagelets is available on PyPI, so the easiest way to install it is to use pip:

    pip install django-pagelets
    
  2. Add pagelets, selectable and taggit to INSTALLED_APPS in settings.py and run migrate:

    INSTALLED_APPS = (
        ...,
        'pagelets',
        'selectable',
        'taggit'
        ...
    )
    
  3. Make sure django.template.context_processors.request is loaded and that you have a template directory with a "base.html" template in it:

    TEMPLATES=[
        {
            ...
            'DIRS': ['/home/user/projects/myproject/templates'], # <- should have 'base.html' inside
            ...
            'OPTIONS': {
                'context_processors': [
                    ...
                    'django.template.context_processors.request',
                ]
            },
        },
    ],
    
  4. Add the pagelets URLs to urls.py, e.g.:

    urlpatterns += [
        url(r'^selectable/', include('selectable.urls')),
        url(r'^pagelets-management/', include('pagelets.urls.management')),
        url(r'^', include('pagelets.urls.content')),
    ]
    
  5. Visit the admin site, add and save a new page, and click the View on site link. If everything is setup correctly, you should be able to see and edit the content you just added.

Development sponsored by Caktus Consulting Group, LLC..