diff --git a/roles/mailman/files/post-update.sh b/roles/mailman/files/post-update.sh index a13e88997e..5bb3b28e1e 100755 --- a/roles/mailman/files/post-update.sh +++ b/roles/mailman/files/post-update.sh @@ -11,7 +11,7 @@ CONFDIR=`yamlget confdir $CONFFILE` INDEXDIR=$BASEDIR/kittystore_search_index django-admin collectstatic --clear --noinput --verbosity 0 --pythonpath $CONFDIR --settings settings -django-admin assets build --parse-templates --pythonpath $CONFDIR --settings settings +django-admin compress --pythonpath $CONFDIR --settings settings django-admin syncdb --pythonpath $CONFDIR --settings settings_admin --noinput --migrate django-admin loaddata /etc/postorius/sites/default/initial-user.json --pythonpath $CONFDIR --settings settings_admin kittystore-updatedb --pythonpath $CONFDIR --settings settings_admin diff --git a/roles/mailman/templates/settings.py.j2 b/roles/mailman/templates/settings.py.j2 index 7ba048a1d2..d1592739a8 100644 --- a/roles/mailman/templates/settings.py.j2 +++ b/roles/mailman/templates/settings.py.j2 @@ -111,7 +111,7 @@ STATICFILES_FINDERS = ( 'django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder', # 'django.contrib.staticfiles.finders.DefaultStorageFinder', - 'django_assets.finders.AssetsFinder', + 'compressor.finders.CompressorFinder', ) # Make this unique, and don't share it with anybody. @@ -196,7 +196,7 @@ INSTALLED_APPS = ( 'django_gravatar', 'south', 'crispy_forms', - 'django_assets', + 'compressor', 'paintstore', 'django_browserid', 'postorius', @@ -262,11 +262,14 @@ BROWSERID_VERIFY_CLASS = "django_browserid.views.Verify" #GRAVATAR_DEFAULT_SECURE = True # -# django-assets -# https://pypi.python.org/pypi/django-assets +# django-compressor +# https://pypi.python.org/pypi/django_compressor # -ASSETS_DEBUG = DEBUG -ASSETS_AUTO_BUILD = DEBUG +COMPRESS_PRECOMPILERS = ( + ('text/less', 'lessc {infile} {outfile}'), +) +# needed for debug mode +#INTERNAL_IPS = ('127.0.0.1',) # A sample logging configuration. The only tangible logging