diff --git a/umap/settings/base.py b/umap/settings/base.py index 7d011092f3d21a95bc0305f34817bb2547cf13c7..c413e9325ccbfc75efa1efc939b9969bbfc8eff7 100644 --- a/umap/settings/base.py +++ b/umap/settings/base.py @@ -26,7 +26,7 @@ LANGUAGES = ( ) # Make this unique, and don't share it with anybody. -SECRET_KEY = 'j6fly6aomgo6!3_$v#9kvhw-%wgs1@1l6x+4nr73tmn40=&_@&' +SECRET_KEY = '' INSTALLED_APPS = ( 'leaflet_storage', @@ -134,6 +134,8 @@ AUTHENTICATION_BACKENDS += ( #============================================================================== # Miscellaneous project settings #============================================================================== +LEAFLET_STORAGE_ALLOW_ANONYMOUS = False +SITE_URL = "http://umap.org" #============================================================================== # Third party app settings diff --git a/umap/templates/leaflet_storage/map_list.html b/umap/templates/leaflet_storage/map_list.html index 58d3bed836a65cff8c1b1bef1a16cf271f596e64..0038e5f7f4353d7455b4eb060e27e80dfe4ed484 100644 --- a/umap/templates/leaflet_storage/map_list.html +++ b/umap/templates/leaflet_storage/map_list.html @@ -3,7 +3,7 @@ {% for map_inst in maps %} <div class="col _35"> {% 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> {% endfor %} {% if maps.has_next %}