Permalink
Browse files

{{ MEDIA_URL }} -> {{ STATIC_URL }} (django compatibility changes)

  • Loading branch information...
1 parent 2f77b34 commit c5b750c9c5e9ea5a8a39a635ab3caaf7a783c394 @alexey-sveshnikov committed Feb 23, 2012
@@ -13,7 +13,7 @@
{% block rss_feed %}
<a href="{% url planet_author_rss_feed author.pk %}" title="{% trans 'Suscribe to RSS feed for blog' %} {{ author.name }}">
- <img src="{{ MEDIA_URL }}images/rss20.png" alt="RSS 2.0 Feed"/>
+ <img src="{{ STATIC_URL }}images/rss20.png" alt="RSS 2.0 Feed"/>
</a>
{% endblock %}
@@ -50,7 +50,7 @@
<li>
{% block rss_feed %}
<a href="{% url planet_rss_feed %}" title="{% trans 'Suscribe to RSS feed' %}">
- <img src="{{ MEDIA_URL }}images/rss20.png" alt="RSS 2.0 Feed"/>
+ <img src="{{ STATIC_URL }}images/rss20.png" alt="RSS 2.0 Feed"/>
</a>
{% endblock %}
</li>
@@ -60,17 +60,17 @@
</li>
<li>
<a href="{% url planet_opml %}" title="OPML">
- <img src="{{ MEDIA_URL }}images/button-opml.png"/>
+ <img src="{{ STATIC_URL }}images/button-opml.png"/>
</a>
</li>
<li>
<a href="{% url planet_foaf %}" title="FOAF">
- <img src="{{ MEDIA_URL }}images/button-foaf.png"/>
+ <img src="{{ STATIC_URL }}images/button-foaf.png"/>
</a>
</li>
<li>
<a href="http://www.djangoproject.com/" title="{% trans 'This is a django powered site!' %}">
- <img src="{{ MEDIA_URL }}images/django_80x15.png" width="80" height="15" alt="Powered by Django." title="Powered by Django"/>
+ <img src="{{ STATIC_URL }}images/django_80x15.png" width="80" height="15" alt="Powered by Django." title="Powered by Django"/>
</a>
</li>
</ul>
@@ -16,7 +16,7 @@
{% for feed in blog.feed_set.all %}
<li>
<a href="{{ feed.url }}" title="{% trans 'Subscribe to ' %} {{ feed.title }}">
- <img src="{{ MEDIA_URL }}images/feed.png" alt="{% trans 'RSS 2.0 Feed' %}" />
+ <img src="{{ STATIC_URL }}images/feed.png" alt="{% trans 'RSS 2.0 Feed' %}" />
</a>
{% trans 'feed' %}: <a href="{% url planet_feed_detail feed.pk %}" class="feed" title="{% trans 'See the full list of post from this feed' %}">{{ feed.title }}</a>
</li>
@@ -28,7 +28,7 @@
<li>
{% trans 'feed' %}: <a href="{% url planet_feed_detail feed.pk %}" class="feed" title="{% trans 'See the full list of post from this feed' %}">{{ feed.title }}</a>
<a href="{{ feed.url }}" title="{% trans 'Subscribe to ' %} {{ feed.title }}">
- <img src="{{ MEDIA_URL }}images/feed.png" alt="{% trans 'RSS 2.0 Feed' %}" />
+ <img src="{{ STATIC_URL }}images/feed.png" alt="{% trans 'RSS 2.0 Feed' %}" />
</a>
</li>
{% endfor %}
@@ -33,7 +33,7 @@
<ul class="feed details">
<li>
<a href="{{ feed.url }}" title="{% trans 'Subscribe to ' %} {{ feed.title }}">
- <img src="{{ MEDIA_URL }}images/feed.png" alt="{% trans 'RSS 2.0 Feed' %}" />
+ <img src="{{ STATIC_URL }}images/feed.png" alt="{% trans 'RSS 2.0 Feed' %}" />
</a>
{% trans 'feed' %}: <a href="{{ feed.url }}" class="feed" title="{% trans 'Subscribe to ' %} {{ feed.title }}">{{ feed.title }}</a>
</li>
@@ -20,7 +20,7 @@
<ul class="blog details">
<li>
<a href="{{ feed.feed_url }}" title="{% trans 'Subscribe to feed of' %} {{ feed.title }}">
- <img src="{{ MEDIA_URL }}images/feed.png" alt="Feed">
+ <img src="{{ STATIC_URL }}images/feed.png" alt="Feed">
</a>
{% trans 'feed' %}: <a href="{{ feed.url }}" class="feed" title="{% trans 'Subscribe to this feed' %}">{{ feed.url }}</a>
</li>
@@ -8,7 +8,7 @@
{% for feed in feeds_list %}
<p>
<a href="{{ feed.feed_url }}" title="{% trans 'Subscribe to feed of' %} {{ feed.title }}">
- <img src="{{ MEDIA_URL }}images/feed.png" alt="Feed">
+ <img src="{{ STATIC_URL }}images/feed.png" alt="Feed">
</a>
<a class="nombre" href="{% url planet_by_tag_feed_detail feed.pk,tag.name %}" title="{{ feed.title }}">
{{ feed.title }}
@@ -14,7 +14,7 @@
{% block rss_feed %}
<a href="{% url planet_tag_rss_feed tag %}" title="{% trans 'Suscribe to RSS feed for tag' %} {{ tag }}">
- <img src="{{ MEDIA_URL }}images/rss20.png" alt="RSS 2.0 Feed"/>
+ <img src="{{ STATIC_URL }}images/rss20.png" alt="RSS 2.0 Feed"/>
</a>
{% endblock %}
@@ -9,15 +9,15 @@
{% endblock %}
<meta http-equiv="content-language" content="en" />
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8">
- <link href="{{ MEDIA_URL }}icons/shortcut.ico" rel="SHORTCUT ICON">
+ <link href="{{ STATIC_URL }}icons/shortcut.ico" rel="SHORTCUT ICON">
<link rel="meta" type="application/rdf+xml" title="FOAF" href="{% url planet_foaf %}" />
- <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/base.css" />
- <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/960.css" />
+ <link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/base.css" />
+ <link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/960.css" />
{% block head_feeds %}
{% endblock %}
{% block extrastyle %}{% endblock %}
{% block extrahead %}{% endblock %}
- <script src="{{ MEDIA_URL }}js/jquery.min.js" language="javascript"></script>
+ <script src="{{ STATIC_URL }}js/jquery.min.js" language="javascript"></script>
<script language="javascript">
function externalLinks(base_url) {
return $('a[href^=http]:not("[href^=' + base_url + ']"):not(":has(\'img\')")');
View
@@ -17,18 +17,18 @@
url(r'^authors/(?P<author_id>\d+)/tags/(?P<tag>.*)/$', "author_detail", name="planet_by_tag_author_detail"),
url(r'^authors/(?P<author_id>\d+)/$', "author_detail", name="planet_author_detail"),
url(r'^authors/$', "authors_list", name="planet_author_list"),
-
+
url(r'^tags/(?P<tag>.*)/feeds/$', "tag_feeds_list", name="planet_tag_feed_list"),
url(r'^tags/(?P<tag>.*)/authors/$', "tag_authors_list", name="planet_tag_author_list"),
url(r'^tags/(?P<tag>.*)/$', "tag_detail", name="planet_tag_detail"),
url(r'^tags/$', "tags_cloud", name="planet_tag_cloud"),
-
+
url(r'^opml/$', "opml", name="planet_opml"),
url(r'^foaf/$', "foaf", name="planet_foaf"),
-
+
url(r'^posts/(?P<post_id>\d+)/$', "post_detail", name="planet_post_detail"),
url(r'^posts/$', "posts_list", name="planet_post_list"),
-
+
url(r'^search/$', "search", name="planet_search"),
url(r'^$', "index", name="planet_index"),

0 comments on commit c5b750c

Please sign in to comment.