Django 1.9 compatibility

- Remove deprecated `load ur from future`
- Refactor urls.py as list
This commit is contained in:
Scot Hacker 2016-01-06 23:44:57 -08:00
parent c3e47ba438
commit 8ee28118fe
10 changed files with 21 additions and 27 deletions

View file

@ -1,10 +1,11 @@
{% extends "base.html" %}
{% load staticfiles %}
{% block extrahead %}
<!-- CSS and JavaScript for django-todo -->
<link rel="stylesheet" type="text/css" href="{{STATIC_URL}}todo/css/styles.css" />
<link rel="stylesheet" type="text/css" href="{% static 'todo/css/styles.css' %}" />
<script src="{{STATIC_URL}}todo/js/jquery.tablednd_0_5.js" type="text/javascript"></script>
<script src="{% static 'todo/js/jquery.tablednd_0_5.js' %}" type="text/javascript"></script>
<script type="text/javascript" charset="utf-8">
// thedate.x comes from the edit_task view. If this is a new entry,

View file

@ -1,5 +1,4 @@
{% extends "base.html" %}
{% load url from future %}
{% block title %}{{ list_title }} to-do items{% endblock %}

View file

@ -1,4 +1,3 @@
{% load url from future %}
Dear {{ task.assigned_to.first_name }} -
A new task on the list {{ task.list.name }} has been assigned to you by {{ task.created_by.first_name }} {{ task.created_by.last_name }}:

View file

@ -1,4 +1,3 @@
{% load url from future %}
A new task comment has been added.
Task: {{ task.title }}

View file

@ -1,5 +1,4 @@
{% extends "todo/base.html" %}
{% load url from future %}
{% block title %}{{ list_title }} Todo Lists{% endblock %}

View file

@ -1,5 +1,4 @@
{% extends "todo/base.html" %}
{% load url from future %}
{% block title %}Search results{% endblock %}
{% block body_id %}post_search{% endblock %}

View file

@ -1,5 +1,4 @@
{% extends "todo/base.html" %}
{% load url from future %}
{% block title %}Todo List: {{ list.name }}{% endblock %}

View file

@ -1,5 +1,4 @@
{% extends "todo/base.html" %}
{% load url from future %}
{% block title %}Task: {{ task.title }}{% endblock %}