django-pagelets

Simple, flexible app for integrating static, unstructured content in a Django site
Download

django-pagelets Ranking & Summary

Advertisement

  • Rating:
  • License:
  • BSD License
  • Publisher Name:
  • Caktus Consulting Group
  • Publisher web site:
  • http://caktusgroup.com

django-pagelets Tags


django-pagelets Description

Simple, flexible app for integrating static, unstructured content in a Django site django-pagelets is a 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/disabledDependenciesRequired * Django admin site - The django.core.context_processors.request context processorOptional * jQuery 1.3 * WYMeditor (included in pagelets media)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 to INSTALLED_APPS in settings.py and run syncdb: INSTALLED_APPS = ( ..., 'pagelets', ... ) 3. Add the pagelets URLs to urls.py, e.g.: urlpatterns += patterns('', (r'^pagelets/', include('pagelets.urls.content')), (r'^pagelets-management/', include('pagelets.urls.management')), ) 4. In development, you can serve pagelet's static media in urls.py: import pagelets path = os.path.join(os.path.dirname(pagelets.__file__), 'media') urlpatterns += patterns('', ( r'^%spagelets/(?P.*)' % settings.MEDIA_URL.lstrip('/'), 'django.views.static.serve', {'document_root': path, 'show_indexes': True} ), ) 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.. Requirements: · Python · Django


django-pagelets Related Software