Ecotrust / bioregion-discovery

Ecotrust's Bioregion Discovery Portal
http://bioregions.apps.ecotrust.org
4 stars 1 forks source link

Get server "production ready" #44

Closed perrygeo closed 12 years ago

perrygeo commented 12 years ago

Do some testing to make sure DEBUG=False (ie production mode) is working properly.

This will require the installation of csstidy to compile css files.

Als, since the css and js are no longer loaded individually, they are instead compressed into single files for speed. These single files might be at different paths than the original css/js files so relative paths may break. So far We've noticed this at:

The expand_collapse gif. When DEBUG=False, it tries this URL /media/common/css/images/sprites/expand_collapse.gif?1306527742 But when DEBUG=True, it uses this URL (the correct one) /media/bmm/css/images/sprites/expand_collapse.gif?1306527742

We need to make the paths consistent regardless of DEBUG setting.

Google Code Info: Issue #: 44 Author: perrygeo...@gmail.com Created On: 2011-08-05T18:25:31.000Z Closed On: 2011-08-23T15:22:32.000Z

perrygeo commented 12 years ago

Google Code Info: Author: perrygeo...@gmail.com Created On: 2011-08-05T18:25:47.000Z

perrygeo commented 12 years ago

still using relative paths. moved kmltree_mod.css and related image file from media/bmm/css to media/common/css.

the expand/collapse images now appear correctly for both DEBUG=True and DEBUG=False

NOTE: also changed settings.MEDIA_URL on production from .labs. to .apps.

Google Code Info: Author: sfletche@gmail.com Created On: 2011-08-23T15:22:32.000Z