Skip to main content

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

Changes in 0.10.0

Pagelets 0.10.0 includes a number of changes to support Django 1.7 and the new migration framework. You should be aware of these changes if you are upgrading from the latest 0.9.x release of pagelets. If you are using pagelets in a project for the first time with version 0.10.0 or newer, you should not need to worry about any of these changes.

Pagelets no longer users django-tagging, which did not support Django 1.7 migrations and is no longer maintained. We now use django-taggit. At the moment there is no migration to move tags from django-tagging to django-taggit.

Required Dependencies

  • Django 1.7

  • Python 2.7 or 3.3

  • Django admin site

  • django-taggit 0.12.1 or greater

  • django-selectable 0.9.0 or greater

  • The django.core.context_processors.request context processor

Optional Dependencies

Support for Django 1.4 through 1.6

If you require support for a Django release before 1.7, you can use a release from the 0.9 line of Pagelets, which supports Django 1.3, 1.4, 1.5, and 1.6. This release is also compatible with Python 3.3 for appropriate Django versions. At this time we will continue to support security updates to this version of Pagelets.

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 to INSTALLED_APPS in settings.py and run syncdb:

    INSTALLED_APPS = (
        ...,
        'pagelets',
        ...
    )
  3. Add django.core.context_processors.request to TEMPLATE_CONTEXT_PROCESSORS:

    TEMPLATE_CONTEXT_PROCESSORS = (
        "django.contrib.auth.context_processors.auth",
        "django.core.context_processors.debug",
        "django.core.context_processors.i18n",
        "django.core.context_processors.media",
        "django.core.context_processors.static",
        "django.contrib.messages.context_processors.messages",
        "django.core.context_processors.request", # <----
    )
  4. Add the pagelets URLs to urls.py, e.g.:

    urlpatterns += patterns('',
        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..

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-pagelets-0.10.0.tar.gz (180.7 kB view details)

Uploaded Source

File details

Details for the file django-pagelets-0.10.0.tar.gz.

File metadata

File hashes

Hashes for django-pagelets-0.10.0.tar.gz
Algorithm Hash digest
SHA256 c908b1b4099a06ffde4680c98e421098505a09a6c3572c3768a2b93ce1be7482
MD5 275c32ac0246369d04baa8bfeca8c238
BLAKE2b-256 eb083b64f6c908f9453752ee622edfd2fafbce5a040a7f029d55c155efe3c910

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page