FinalsClub / karmaworld

KarmaNotes.org v3.0
GNU Affero General Public License v3.0
7 stars 6 forks source link

compressor is disabled #444

Closed btbonval closed 8 years ago

btbonval commented 8 years ago

The documentation says

If the code has changed or this is the first run, make sure any modified static files get compressed with foreman run python manage.py compress. Static files then need to be uploaded correctly with foreman run python manage.py collectstatic.

However:

$ foreman run python manage.py compress
/storage/development/envs/karmaworld/local/lib/python2.7/site-packages/django/utils/hashcompat.py:9: DeprecationWarning: django.utils.hashcompat is deprecated; use hashlib instead
  DeprecationWarning)

CommandError: Compressor is disabled. Set the COMPRESS_ENABLED settting or use --force to override.

We might have changed how compression works since the documentation was written, or maybe the documentation is missing some steps on configuring the compressor.

btbonval commented 8 years ago

Compressor is not used in dev mode. https://github.com/FinalsClub/karmaworld/blob/f8a5b8e24fe4751b9d22d121b152fb14e9f78932/karmaworld/settings/dev.py#L97-L99

Documentation needs to be updated.