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

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-1.1.0.tar.gz (205.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_pagelets-1.1.0-py2.py3-none-any.whl (214.7 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

File hashes

Hashes for django-pagelets-1.1.0.tar.gz
Algorithm Hash digest
SHA256 8ea19b9520e88b169fa2642474c242275211b338608bdbb75881e881b39aeb31
MD5 92a1fcf4b8183f4580675170bb1a39df
BLAKE2b-256 6f5b4cf6470ff8bf7f8bd0a486e4a62fa88a14a758a574f751c058c8c5786a3c

See more details on using hashes here.

File details

Details for the file django_pagelets-1.1.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for django_pagelets-1.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 efd97f41b758574d3723457feb1452a581a956798855d84467062d07e881540c
MD5 4508613a52786f168bd28ef0623c97f2
BLAKE2b-256 3d673fb553443d209164291fe1590592cc8680a130e8c7fa6e8f6c1fc8b62e08

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