Thank you Josh,
I am using Apache2 + mod_wsgi + virtualenv.
These are the packages installed in my environment:

Django==1.6.5
Mezzanine==3.1.5
Pillow==2.5.1
bleach==1.4
distribute==0.6.24
django-appconf==0.6
django-compressor==1.4
filebrowser-safe==0.3.5
future==0.9.0
grappelli-safe==0.3.12
html5lib==1.0b3
oauthlib==0.6.3
pytz==2014.4
requests==2.3.0
requests-oauthlib==0.4.1
six==1.7.3
tzlocal==1.0


On Wednesday, July 16, 2014 3:46:17 PM UTC+2, Josh Cartmell wrote:
>
> Hey Luigi, you shouldn't have to do anything manually to get django 
> compressor working once it's installed.  That said, Mezzanine doesn't use 
> it by default when you are using the development server (i.e. runserver).
>
> To override this you just need to set:
> COMPRESS_ENABLED = True
> In your settings.
>
> Any other time DEBUG is False and you aren't using the development server 
> django compressor should work automatically.
>
>
> On Wed, Jul 16, 2014 at 5:29 AM, Luigi <[email protected] <javascript:>> 
> wrote:
>
>> Hello to all,
>> I am trying to let django-compressor working with mezzanine. 
>> For first attempt I simply installed django compressor and changed DEBUG 
>> = False but nothing changed in HTML generated from Django. 
>> So I followed the docs of django compressor and I modified my settings.py:
>>
>> STATICFILES_FINDERS = (
>>     "django.contrib.staticfiles.finders.FileSystemFinder",
>>     #"django.contrib.staticfiles.finders.AppDirectoriesFinder",
>>     #'django.contrib.staticfiles.finders.DefaultStorageFinder',
>>     "compressor.finders.CompressorFinder",
>> )
>>
>> INSTALLED_APPS = (
>>     "django.contrib.admin",
>>     "django.contrib.auth",
>>     "django.contrib.contenttypes",
>>     "django.contrib.redirects",
>>     "django.contrib.sessions",
>>     "django.contrib.sites",
>>     "django.contrib.sitemaps",
>>     "django.contrib.staticfiles",
>>     "mezzanine.boot",
>>     "mezzanine.conf",
>>     "mezzanine.core",
>>     "mezzanine.generic",
>>     "mezzanine.blog",
>>     "mezzanine.forms",
>>     "mezzanine.pages",
>>     "mezzanine.galleries",
>>      "mezzanine.twitter",
>>     #"mezzanine.accounts",
>>     #"mezzanine.mobile",
>>     #'debug_toolbar',
>>     "compressor",
>> )
>>
>> OPTIONAL_APPS = (
>>     #"debug_toolbar",
>>     "django_extensions",
>>     #"compressor", I commented it to follow the django-compressor doc
>>      PACKAGE_NAME_FILEBROWSER,
>>     PACKAGE_NAME_GRAPPELLI,
>> )
>>
>> COMPRESS_ENABLED = True
>> COMPRESS_ROOT = STATIC_ROOT
>>
>>
>> and nothing happened until I launched: python manage.py compress --force
>> So now I have the cache populated and the HTML generated from Django 
>> points to the files in CACHE like:"<link rel="stylesheet" 
>> href="/static/CACHE/css/16e8b98f5bd3.css" type="text/css" media="screen">", 
>> but the files are not minified, django compressor simply copied them and 
>> changed the name.
>> Do you know why the compressor not minify them?
>> Thanks for your help.
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Mezzanine Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to