fix url tag
This commit is contained in:
parent
6cc6f46348
commit
74a4f00ac3
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
{% if article and mod_form %}
|
{% if article and mod_form %}
|
||||||
<div class="article_moderation">
|
<div class="article_moderation">
|
||||||
<form method="POST" action="{% url update_article_status article.title %}">
|
<form method="POST" action="{% url "update_article_status" article.title %}">
|
||||||
<ul>
|
<ul>
|
||||||
<li>{{mod_form.status.label_tag}} {{ mod_form.status }}</li>
|
<li>{{mod_form.status.label_tag}} {{ mod_form.status }}</li>
|
||||||
<li>
|
<li>
|
||||||
@ -16,7 +16,7 @@
|
|||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</form>
|
</form>
|
||||||
<form method="POST" action="{% url rename_article article.title %}">
|
<form method="POST" action="{% url "rename_article" article.title %}">
|
||||||
<ul>
|
<ul>
|
||||||
{{ rename_form.as_ul}}
|
{{ rename_form.as_ul}}
|
||||||
<li>
|
<li>
|
||||||
@ -31,7 +31,7 @@
|
|||||||
|
|
||||||
<h2 class="article_title">
|
<h2 class="article_title">
|
||||||
{% block article_title %}
|
{% block article_title %}
|
||||||
{% if article.section_name %}<a href="{% url view_article article.section_name %}">{{article.section_name}}</a> / {% endif %}
|
{% if article.section_name %}<a href="{% url "view_article" article.section_name %}">{{article.section_name}}</a> / {% endif %}
|
||||||
{{article.display_title}}
|
{{article.display_title}}
|
||||||
|
|
||||||
{% if article.is_deleted %} [deleted] {% endif %}
|
{% if article.is_deleted %} [deleted] {% endif %}
|
||||||
@ -42,10 +42,10 @@
|
|||||||
<div class="article_meta">
|
<div class="article_meta">
|
||||||
{% block article_meta %}
|
{% block article_meta %}
|
||||||
{% if article.editable %}
|
{% if article.editable %}
|
||||||
<a href="{% url edit_article article.title %}">edit article</a> |
|
<a href="{% url "edit_article" article.title %}">edit article</a> |
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if article %}
|
{% if article %}
|
||||||
<a href="{% url article_history article.title %}">view history</a>
|
<a href="{% url "article_history" article.title %}">view history</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
</div>
|
</div>
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|
|
||||||
{% block article_meta %}
|
{% block article_meta %}
|
||||||
{% if article %}
|
{% if article %}
|
||||||
<a href="{% url view_article article.title %}">view article</a> |
|
<a href="{% url "view_article" article.title %}">view article</a> |
|
||||||
<a href="{% url article_history article.title %}">view history</a>
|
<a href="{% url "article_history" article.title %}">view history</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
54
tox.ini
Normal file
54
tox.ini
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
[tox]
|
||||||
|
envlist = py27-django14, py27-django15, py27-django16, py33-django15, py33-django16, flake8
|
||||||
|
|
||||||
|
[testenv:flake8]
|
||||||
|
deps = flake8
|
||||||
|
commands = flake8 markupfield
|
||||||
|
|
||||||
|
[django14]
|
||||||
|
deps =
|
||||||
|
docutils
|
||||||
|
pygments
|
||||||
|
Markdown
|
||||||
|
django-markupfield
|
||||||
|
Django>=1.4,<1.5
|
||||||
|
|
||||||
|
[django15]
|
||||||
|
deps =
|
||||||
|
docutils
|
||||||
|
pygments
|
||||||
|
Markdown
|
||||||
|
django-markupfield
|
||||||
|
Django>=1.5,<1.6
|
||||||
|
|
||||||
|
[django16]
|
||||||
|
deps =
|
||||||
|
docutils
|
||||||
|
pygments
|
||||||
|
markdown
|
||||||
|
django-markupfield
|
||||||
|
Django>=1.6,<1.7
|
||||||
|
|
||||||
|
[testenv]
|
||||||
|
commands =
|
||||||
|
django-admin.py test --settings example.settings
|
||||||
|
|
||||||
|
[testenv:py27-django14]
|
||||||
|
basepython = python2.7
|
||||||
|
deps = {[django14]deps}
|
||||||
|
|
||||||
|
[testenv:py27-django15]
|
||||||
|
basepython = python2.7
|
||||||
|
deps = {[django15]deps}
|
||||||
|
|
||||||
|
[testenv:py27-django16]
|
||||||
|
basepython = python2.7
|
||||||
|
deps = {[django16]deps}
|
||||||
|
|
||||||
|
[testenv:py33-django15]
|
||||||
|
basepython = python3.3
|
||||||
|
deps = {[django15]deps}
|
||||||
|
|
||||||
|
[testenv:py33-django16]
|
||||||
|
basepython = python3.3
|
||||||
|
deps = {[django16]deps}
|
Loading…
Reference in New Issue
Block a user