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

Required Dependencies

  • Django 1.3+

  • Django admin site

  • The django.core.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 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('',
        (r'^pagelets-management/', include('pagelets.urls.management')),
        (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.9.0.tar.gz (177.5 kB view details)

Uploaded Source

File details

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

File metadata

File hashes

Hashes for django-pagelets-0.9.0.tar.gz
Algorithm Hash digest
SHA256 e95c0eee81ccedcc29abce469a06f70f6d95ae951dc2f4ff43f3900ceb1f13ac
MD5 98b7be4da0cddca5e55f7a6c6fffb9e5
BLAKE2b-256 4c614f47718b3fa966bb91d642e2faa772f8f1f68b614cfe2b56beab74f967d2

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 Sentry Error logging StatusPage Status page