Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

make template django1.5 friendly

  • Loading branch information...
commit 1db20dfeb106883b4542d138b131cc8fcbf16505 1 parent a05821e
@qzio authored
Showing with 3 additions and 3 deletions.
  1. +2 −2 templates/home.html
  2. +1 −1  templates/registration/login.html
View
4 templates/home.html
@@ -8,11 +8,11 @@
<td class="hidden-phone">[{{ project.price }}]</td>
<td>
{% if project_started == project.id %}
- <form action="{% url projects_stop project.id %}" method="post">{% csrf_token %}
+ <form action="{% url 'projects_stop' project.id %}" method="post">{% csrf_token %}
<input class="btn" value="Stop" type="submit"/>
</form>
{% elif project_started == None %}
- <form action="{% url projects_start project.id %}" method="post">{% csrf_token %}
+ <form action="{% url 'projects_start' project.id %}" method="post">{% csrf_token %}
<input class="btn" value="Start" type="submit"/>
</form>
{% else %}
View
2  templates/registration/login.html
@@ -7,7 +7,7 @@
{% endif %}
<form method="post"
- action="{% url django.contrib.auth.views.login %}"
+ action="{% url 'django.contrib.auth.views.login' %}"
class="form-horizontal">{% csrf_token %}
<div class="control-group">
{{ form.username.label_tag }}
Please sign in to comment.
Something went wrong with that request. Please try again.