From 5d6cfee03d1d80f18f0c70ac9bcde39ba7e2605f Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Sat, 10 Mar 2012 18:54:18 +0100 Subject: Correct bad parameters --- chimere/templates/chimere/blocks/categories.html | 2 +- chimere/templates/chimere/blocks/head_chimere.html | 2 +- chimere/templates/chimere/detail.html | 4 ++-- example_project/settings.py.example | 7 ++++--- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/chimere/templates/chimere/blocks/categories.html b/chimere/templates/chimere/blocks/categories.html index 5ba89fc..94e947f 100644 --- a/chimere/templates/chimere/blocks/categories.html +++ b/chimere/templates/chimere/blocks/categories.html @@ -11,7 +11,7 @@
  • {% trans "Zoom to" %} {{sub_category.name}} diff --git a/chimere/templates/chimere/blocks/head_chimere.html b/chimere/templates/chimere/blocks/head_chimere.html index 85168f4..3ad7bf4 100644 --- a/chimere/templates/chimere/blocks/head_chimere.html +++ b/chimere/templates/chimere/blocks/head_chimere.html @@ -8,7 +8,7 @@ /* lower cases are for retrocompatibility */ var DYNAMIC_CATEGORIES = {{ DYNAMIC_CATEGORIES|lower }}; var STATIC_URL = static_url = "{{ STATIC_URL }}"; - var MEDIA_URL = media_path = "{{ MEDIA_URL }}"; + var MEDIA_URL = media_path = "{{ STATIC_URL }}"; // to be corrected var extra_url = "{{ EXTRA_URL }}"; var ICON_WIDTH = {{ ICON_WIDTH }}; var ICON_HEIGHT = {{ ICON_HEIGHT }}; diff --git a/chimere/templates/chimere/detail.html b/chimere/templates/chimere/detail.html index 86ab6de..98033e7 100644 --- a/chimere/templates/chimere/detail.html +++ b/chimere/templates/chimere/detail.html @@ -1,7 +1,7 @@ {% load i18n sanitize %}

    {{ marker.name }}

    - {% for picture in marker.default_pictures %}{{marker.name}}{%endfor%} + {% for picture in marker.default_pictures %}{{marker.name}}{%endfor%}
    {% if dated %}

    {{marker.start_date|date:"D d M Y"}} @@ -35,7 +35,7 @@ {% for multimedia_item in marker.multimedia_items %}

    {% if multimedia_item.picture %} - {{multimedia_item.name}}{% endif %} + {{multimedia_item.name}}{% endif %} {% if multimedia_item.url and not multimedia_item.multimedia_type.iframe %}
    {{multimedia_item.name}} diff --git a/example_project/settings.py.example b/example_project/settings.py.example index 947d46b..bac0369 100644 --- a/example_project/settings.py.example +++ b/example_project/settings.py.example @@ -11,7 +11,8 @@ SERVER_URL = 'http://www.mydomain.com/' EXTRA_URL = 'chimere/' BASE_URL = SERVER_URL + EXTRA_URL EMAIL_HOST = 'localhost' -STATIC_URL = '/static/' +STATIC_URL = '/' + EXTRA_URL + 'staticfiles/' +STATIC_ROOT = ROOT_PATH + 'static/' TINYMCE_URL = '/tinymce/' JQUERY_JS_URLS = ('/javascript/jquery/jquery.js', @@ -108,11 +109,11 @@ USE_L10N = True # Absolute path to the directory that holds media. # Example: "/home/media/media.lawrence.com/" -MEDIA_ROOT = ROOT_PATH + 'static/' +MEDIA_ROOT = ROOT_PATH + 'media/' # URL that handles the media served from MEDIA_ROOT. # Example: "http://media.lawrence.com" -MEDIA_URL = '/' + EXTRA_URL + 'static/' +MEDIA_URL = '/' + EXTRA_URL + 'media/' # share with SHARE_NETWORKS = ( -- cgit v1.2.3