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 >= 2.2

  • A Python version supported by your chosen Django version

  • Django admin site

  • django-taggit 0.12.1 or greater

  • django-selectable 1.2.1 or greater

  • The django.template.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, 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 += [
        path('selectable/', include('selectable.urls')),
        path('pagelets-management/', include('pagelets.urls.management')),
        path('/', 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 2.0.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 2.0.0
File Size Uploaded
django-pagelets-2.0.0.tar.gz 230.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-pagelets 2.0.0
File Interpreter ABI Platform
django_pagelets-2.0.0-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 445.9 kB

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

Download URL django-pagelets-2.0.0.tar.gz
Size 230.4 kB
Tags Source
SHA-256 checksum
How to use checksums
5b84489e925024242fa403460c0599bb24d7240df6c6e8d1c16f6ba04297252e
BLAKE2b-256 checksum
How to use checksums
f90c6882910320b4153945f04f94b81de0716f3bfffd19e298e46753f98c200e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.1

Release files / django_pagelets-2.0.0-py2.py3-none-any.whl

Download URL django_pagelets-2.0.0-py2.py3-none-any.whl
Size 215.6 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
59cca8c9b2a633a3797014d035563f2d813859cd04263268787ad146cfa97fe2
BLAKE2b-256 checksum
How to use checksums
86c9223f982a5f995e90b88f8446d311fe65a6f821bcf55d9436c178ae88da4d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.1

Release history Release notifications | RSS feed

This release

2.0.0 This release

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

0.8.0

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