Skip to content

Commit

Permalink
cf brutasse#37 - Use non compressed leaflet source only in debug mode
Browse files Browse the repository at this point in the history
Note that you must have DEBUG=True AND your IP in the INTERNAL_IPS to
use the non compressed version.
  • Loading branch information
yohanboniface committed Sep 24, 2012
1 parent 48b2e14 commit 4e0305b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ Create ``djangopeople/settings.py`` and add::
DATABASES = {
# your DB config
}
INTERNAL_IPS = ('127.0.0.1', )

Then::

Expand Down
6 changes: 5 additions & 1 deletion djangopeople/djangopeople/templates/maps.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.4.4/leaflet.ie.css" />
<![endif]-->

<script src="http://cdn.leafletjs.com/leaflet-0.4.4/leaflet-src.js"></script>
{% if debug %}
<script src="http://cdn.leafletjs.com/leaflet-0.4.4/leaflet-src.js"></script>
{% else %}
<script src="http://cdn.leafletjs.com/leaflet-0.4.4/leaflet.js"></script>
{% endif %}
<script type="text/javascript" src="{% static "djangopeople/js/maps.js" %}"></script>
{% endblock maps_api %}

Expand Down

0 comments on commit 4e0305b

Please sign in to comment.