Prepare for anonymous map

See https://github.com/yohanboniface/Leaflet.Storage/issues/44
This commit is contained in:
Yohan Boniface 2013-03-30 21:33:27 -04:00
parent 2edc6cf2d0
commit cc6935f35d
2 changed files with 4 additions and 2 deletions

View file

@ -26,7 +26,7 @@ LANGUAGES = (
) )
# Make this unique, and don't share it with anybody. # Make this unique, and don't share it with anybody.
SECRET_KEY = 'j6fly6aomgo6!3_$v#9kvhw-%wgs1@1l6x+4nr73tmn40=&_@&' SECRET_KEY = ''
INSTALLED_APPS = ( INSTALLED_APPS = (
'leaflet_storage', 'leaflet_storage',
@ -134,6 +134,8 @@ AUTHENTICATION_BACKENDS += (
#============================================================================== #==============================================================================
# Miscellaneous project settings # Miscellaneous project settings
#============================================================================== #==============================================================================
LEAFLET_STORAGE_ALLOW_ANONYMOUS = False
SITE_URL = "http://umap.org"
#============================================================================== #==============================================================================
# Third party app settings # Third party app settings

View file

@ -3,7 +3,7 @@
{% for map_inst in maps %} {% for map_inst in maps %}
<div class="col _35"> <div class="col _35">
{% map_fragment map_inst %} {% map_fragment map_inst %}
<div class="tintbox"><strong>{{ map_inst.name }}</strong> — {% if map_inst.description %}«{{ map_inst.description }}» {% endif %}<em>{% trans "Cured by" %} <a href="{% url user_maps map_inst.owner.username %}">{{ map_inst.owner }}</a></em><a href="{{ map_inst.get_absolute_url }}">{% trans "See this map!" %}</a></div> <div class="tintbox"><strong>{{ map_inst.name }}</strong> — {% if map_inst.description %}«{{ map_inst.description }}» {% endif %}<em>{% if map_inst.owner %}{% trans "Cured by" %} <a href="{% url user_maps map_inst.owner.username %}">{{ map_inst.owner }}</a></em>{% endif %}<a href="{{ map_inst.get_absolute_url }}">{% trans "See this map!" %}</a></div>
</div> </div>
{% endfor %} {% endfor %}
{% if maps.has_next %} {% if maps.has_next %}