Skip to main content

Simple, flexible app for integrating static, unstructured content in a Django site

Project description

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

For complete documentation, checkout


  • “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.11
  • 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

Note: adding Django 2.0 support will require django-selectable to add Django 2.0 support first.

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 and run migrate:

  3. Make sure django.template.context_processors.request is loaded and that you have a template directory with a “base.html” template in it:

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

    urlpatterns += [
        url(r'^selectable/', include('selectable.urls')),
        url(r'^pagelets-management/', include('')),
        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.

Filename, size & hash SHA256 hash help File type Python version Upload date
django_pagelets-1.1.0-py2.py3-none-any.whl (214.7 kB) Copy SHA256 hash SHA256 Wheel py2.py3
django-pagelets-1.1.0.tar.gz (205.5 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page