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

  • 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

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

Project details


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

Uploaded Source

Built Distribution

django_pagelets-1.0.0-py2-none-any.whl (216.8 kB view details)

Uploaded Python 2

File details

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

File metadata

File hashes

Hashes for django-pagelets-1.0.0.tar.gz
Algorithm Hash digest
SHA256 6f71e00099313a01b44a52a7a9a23151dd2b4dfe01a5dfdf49db2b6348b6a9dd
MD5 0ad38ef3228542d4f86f26e9bb0034e5
BLAKE2b-256 d1b1cf898f5b92d80426fabc840a28e9a5e2d320c45c4b937b04e385bec0c977

See more details on using hashes here.

Provenance

File details

Details for the file django_pagelets-1.0.0-py2-none-any.whl.

File metadata

File hashes

Hashes for django_pagelets-1.0.0-py2-none-any.whl
Algorithm Hash digest
SHA256 87ab56b45076119370c35edf471d6bf240c719727540597fdab01d06b4612dfa
MD5 3dde81dc7083224140f35df9b2c4a9a8
BLAKE2b-256 eb8f607bf1b6501f1690e2689fd5ad2816d882f72ab0dd8de41c6bb047cf3d0e

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page