From 823b4d643e0a5eb666fe279dcf7cda365311321c Mon Sep 17 00:00:00 2001 From: growlf Date: Mon, 30 Jun 2014 15:45:59 -0700 Subject: [PATCH] Added settings for easy thumbnails and South for support with the '--filer' option --- djangocms_installer/config/settings.py | 4 ++++ djangocms_installer/django/__init__.py | 2 ++ 2 files changed, 6 insertions(+) diff --git a/djangocms_installer/config/settings.py b/djangocms_installer/config/settings.py index 860a5ca..b7458cf 100644 --- a/djangocms_installer/config/settings.py +++ b/djangocms_installer/config/settings.py @@ -170,3 +170,7 @@ URLCONF = { } + +SOUTH_MIGRATION_MODULES = ( + ('easy_thumbnails', 'easy_thumbnails.south_migrations'), +) diff --git a/djangocms_installer/django/__init__.py b/djangocms_installer/django/__init__.py index 0c8a8bb..12fbff5 100644 --- a/djangocms_installer/django/__init__.py +++ b/djangocms_installer/django/__init__.py @@ -253,6 +253,8 @@ def _build_settings(config_data): if config_data.filer: text.append("THUMBNAIL_PROCESSORS = (\n%s%s\n)" % ( spacer, (",\n" + spacer).join(["'%s'" % var for var in vars.THUMBNAIL_PROCESSORS]))) + text.append("SOUTH_MIGRATION_MODULES = {\n%s%s\n}" % ( + spacer, (",\n" + spacer).join(["'%s': '%s'" % item for item in vars.SOUTH_MIGRATION_MODULES]))) return "\n\n".join(text)