Simple, flexible app for integrating static, unstructured content in a Django site
Project description
django-pagelets
Simple, flexible app for integrating static, unstructured content in a Django site
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
Dependencies
Required
Django admin site - The django.core.context_processors.request context processor
Optional
WYMeditor (included in pagelets media)
Installation
Download the app through SVN and add it to your Python path:
svn co http://django-pagelets.googlecode.com/svn/trunk/ pagelets
Install to dist-packages
(sudo) python setup.py install
Add to your INSTALLED_APPS and run syncdb
INSTALLED_APPS = ( ..., 'django.contrib.webdesign', 'pagelets', )
Copy the CSS and, if you need it, the WYMeditor CSS and JavaScript into your static media directory:
rsync -av --exclude=.svn pagelets/media/ /path/to/project/media
If you don’t have rsync, you can accomplish the same thing by manually copying all the directories within the pagelets/media directory into your project’s static media directory and removing the .svn folders in the target (assuming you got the pagelets app from Subversion).
Setup
Add the pagelets tables to your database:
./manage.py syncdb
Add the pagelets CSS and, if desired, the WYMeditor CSS/JavaScript to your base.html template:
<link rel="stylesheet" href="{{ MEDIA_URL }}css/pagelets.css" /> <script type="text/javascript" src="{{ MEDIA_URL }}js/jquery-1.3.2.min.js"></script> <script type="text/javascript" src="{{ MEDIA_URL }}wymeditor/jquery.wymeditor.min.js"></script> <script type="text/javascript" src="{{ MEDIA_URL }}wymeditor/pagelets.js"></script>
Add the pagelets URLs to your urls.py file, e.g.:
(r'^pages/', include('pagelets.urls')),
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
File details
Details for the file django-pagelets-0.5.tar.gz
.
File metadata
- Download URL: django-pagelets-0.5.tar.gz
- Upload date:
- Size: 11.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e16d45b89c2d477285e217878f4a1949ad253a6ee2e30f1ab99542ba8e76e4b1 |
|
MD5 | 877809de7ad5bc748d176c9b033a0f17 |
|
BLAKE2b-256 | c7dd602060f911c7c5bd0f3cadcbea38783bcb6793931bc3a907ea4a8e4896e3 |