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..

Release files for django-pagelets 0.8.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-pagelets 0.8.0
File Size Uploaded
django-pagelets-0.8.0.tar.gz 174.4 kB Details

Release files / django-pagelets-0.8.0.tar.gz

Download URL django-pagelets-0.8.0.tar.gz
Size 174.4 kB
Tags Source
SHA-256 checksum
How to use checksums
088be505138b8b0dd572cf4008d6e95697b489ba90d671919019b86039650431
BLAKE2b-256 checksum
How to use checksums
b2788fc28f54943c9b3d215250fc2cf9bf9c632208bbfe26e2ba0c1c119325fb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

2.0.0

2 release files

1.1.0

2 release files

1.0.0

2 release files

0.10.0

1 release file

0.9.1

1 release file

0.9.0

1 release file

This release

0.8.0 This release

1 release file

0.7.2

1 release file

0.7.1

1 release file

0.7.0

0.6.2

1 release file

0.6.1

1 release file

0.6.0

1 release file

0.5.1

1 release file

0.5

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page