Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install django-pagelets

How to install django-pagelets

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install django-pagelets
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
0.5.1
0.7.2 Failed View build log
0.7.1 Failed View build log
0.6.2 Failed View build log
0.6.0 Failed View build log
0.5.1 Available View build log
Windows (64-bit)
0.5.1
0.7.2 Failed View build log
0.7.1 Failed View build log
0.6.2 Failed View build log
0.6.0 Failed View build log
0.5.1 Available View build log
Mac OS X (10.5+)
0.7.2 Available View build log
0.7.1 Available View build log
0.6.2 Available View build log
0.6.0 Available View build log
0.5.1 Available View build log
Linux (32-bit)
0.7.2 Available View build log
0.7.1 Available View build log
0.6.2 Available View build log
0.6.0 Available View build log
0.5.1 Available View build log
Linux (64-bit)
0.7.2 Available View build log
0.7.1 Available View build log
0.6.2 Available View build log
0.6.0 Available View build log
0.5.1 Available View build log
 
License
BSD
Lastest release
version 0.7.2 on May 23rd, 2012

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 admin site
  • The django.core.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 to INSTALLED_APPS in settings.py and run syncdb:

    INSTALLED_APPS = (
        ...,
        'pagelets',
        ...
    )
    
  3. Add django.core.context_processors.request to TEMPLATE_CONTEXT_PROCESSORS:

    TEMPLATE_CONTEXT_PROCESSORS = (
        "django.contrib.auth.context_processors.auth",
        "django.core.context_processors.debug",
        "django.core.context_processors.i18n",
        "django.core.context_processors.media",
        "django.contrib.messages.context_processors.messages",
        "django.core.context_processors.request", # <----
    )
    
  4. Add the pagelets URLs to urls.py, e.g.:

    urlpatterns += patterns('',
        (r'^pagelets-management/', include('pagelets.urls.management')),
        (r'^', include('pagelets.urls.content')),
    )
    
  5. 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<path>.*)' % settings.MEDIA_URL.lstrip('/'),
            'django.views.static.serve',
            {'document_root': path, 'show_indexes': True}
        ),
    )
    
  6. 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.

History

0.7.2
  • Updated migration 0003 to be a data migration
  • Made Page.tags field always exist, and add migration for it
0.7.1
  • Add Read the Docs reference to README
  • Update sample_project to work with Django 1.3
  • Use CDN for external jQuery dependencies
  • Add migration to install sequences properly on PostgreSQL
0.7.0
  • Add docs and publish on Read the Docs
  • Update media references to work better with staticfiles
  • Make PageletBase an abstract base class
  • Begin using South for migrations
  • Update sample_project to use Django 1.2
0.6.2
  • Remove use of .format() to support earlier versions of Python
  • Fix license reference and URL endpoint in setup.py
  • Include sample_project in MANIFEST.in
  • Update license date
0.6.0
  • First official release

Development sponsored by Caktus Consulting Group, LLC..

Subscribe to package updates

Last updated May 23rd, 2012

Download Stats

Last month:7

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.