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 >= 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
WYMeditor (included in pagelets media)
Installation and Setup
django-pagelets is available on PyPI, so the easiest way to install it is to use pip:
pip install django-pagelets
Add pagelets, selectable and taggit to INSTALLED_APPS in settings.py and run migrate:
INSTALLED_APPS = ( ..., 'pagelets', 'selectable', 'taggit' ... )
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', ] }, }, ],
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')), ]
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for django_pagelets-2.0.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 59cca8c9b2a633a3797014d035563f2d813859cd04263268787ad146cfa97fe2 |
|
MD5 | ffff62e22d7335eb054006db51d83af2 |
|
BLAKE2b-256 | 86c9223f982a5f995e90b88f8446d311fe65a6f821bcf55d9436c178ae88da4d |