-
Notifications
You must be signed in to change notification settings - Fork 14
Home
Marc Egli edited this page Jan 10, 2011
·
3 revisions
-
add 'pennyblack' to INSTALLED_APPS
-
install all requirements and patch mailman
-
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)
-
if you use south for migration management redirect the migrations path for pennyblack in settings.py
SOUTH_MIGRATION_MODULES = { 'pennyblack': 'checkbus.migrations_pennyblack', }
-
invoke syncdb (or schemamigration --initial and migrate if you use south)
-
add pennyblack views to urls.py
(r'^newsletter/', include('pennyblack.urls'))