{% load i18n %}
{% load catalogue %}
{% load javascript stylesheet from pipeline %}
-{% load static from staticfiles %}
+{% load static %}
<!DOCTYPE html>
<html>
<head>
# This file is part of MIL/PEER, licensed under GNU Affero GPLv3 or later.
# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
#
-from django.conf.urls import patterns, url
+from django.conf.urls import url
from fileupload.views import UploadView
-urlpatterns = patterns(
- '',
+urlpatterns = (
url(r'^(?P<path>(?:.*/)?)$', UploadView.as_view(), name='fileupload'),
)
from datetime import datetime
from io import BytesIO, StringIO
-from django.conf.urls import patterns, url
+from django.conf.urls import url
from django.contrib import admin
from django.core.files.storage import FileSystemStorage
from django.core.urlresolvers import reverse
{% endif %}
</script>
{% endif %}
- <script src="{% url 'django.views.i18n.javascript_catalog' %}"></script>
+ <script src="{% url 'javascript_catalog' %}"></script>
{% if DEBUG %}
<link rel="stylesheet/less" type="text/css" href="{% static 'wiki/editor/src/editor/styles/main.less' %}"/>
<li><a style="color: white">
- <form action="{% url 'django.views.i18n.set_language' %}" method="post" style="display: inline">
+ <form action="{% url 'set_language' %}" method="post" style="display: inline">
{% csrf_token %}
<input type="hidden" name="language" value="en" /><button type="submit" style="border: 0; background: none">en</button></form> |
- <form action="{% url 'django.views.i18n.set_language' %}" method="post" style="display: inline">
+ <form action="{% url 'set_language' %}" method="post" style="display: inline">
{% csrf_token %}
<input type="hidden" name="language" value="pl" /><button type="submit" style="border: 0; background: none">pl</button></form> |
</a>
# git+git://github.com/fnp/librarian.git@master#egg=librarian
## Django
-Django>=1.9,<1.10
+Django>=1.10,<1.11
fnpdjango>=0.2,<0.3
django-pipeline>=1.6,<1.7
sorl-thumbnail>=12.3,<13