Skip to content
Marc Egli edited this page Jan 10, 2011 · 3 revisions

Installation

  1. add 'pennyblack' to INSTALLED_APPS

  2. install all requirements and patch mailman

  3. register templates and content types for pennyblack

    from pennyblack.models import Newsletter
    from pennyblack.content.richtext import TextOnlyNewsletterContent, \
        TextWithImageNewsletterContent
    
    Newsletter.register_templates({
        'key': 'base',
        'title': 'Generic Newsletter',
        'path': 'base_newsletter.html',
        'regions': (
            ('main', 'Main Region'),
            ),
        })
    
    Newsletter.create_content_type(TextOnlyNewsletterContent)
    Newsletter.create_content_type(TextWithImageNewsletterContent)
    
  4. if you use south for migration management redirect the migrations path for pennyblack in settings.py

    SOUTH_MIGRATION_MODULES = {
        'pennyblack': 'checkbus.migrations_pennyblack',
    }
    
  5. invoke syncdb (or schemamigration --initial and migrate if you use south)

  6. add pennyblack views to urls.py

    (r'^newsletter/', include('pennyblack.urls'))
    
Clone this wiki locally