-i https://py.mdrn.pl/simple/
# django
-Django==2.1.11
+Django==2.2.4
fnpdjango==0.4
#django-pipeline==1.6.13
<!DOCTYPE html>
<html>
- {% load static from staticfiles %}
+ {% load static from static %}
{% load i18n pipeline %}
{% load catalogue_tags %}
{% load thumbnail %}
{% load i18n %}
-{% load static from staticfiles %}
+{% load static from static %}
{% if license_url %}
<a class="license-icon" href="{{ license_url }}"
<!DOCTYPE html>
{% load i18n %}
-{% load static from staticfiles %}
+{% load static from static %}
{% load pipeline %}
{% load piwik_tags %}
<html class="no-js">
self.assertEqual(book.title, "Default Book")
self.assertEqual(book.slug, "default-book")
- self.assert_(book.parent is None)
+ self.assertTrue(book.parent is None)
self.assertFalse(book.has_html_file())
# no fragments generated
self.assertEqual(book.fragments.count(), 1)
self.assertEqual(book.fragments.all()[0].text, '<p class="paragraph">Ala ma kota</p>\n')
- self.assert_(('theme', 'love') in [(tag.category, tag.slug) for tag in book.fragments.all()[0].tags])
+ self.assertTrue(('theme', 'love') in [(tag.category, tag.slug) for tag in book.fragments.all()[0].tags])
def test_book_with_empty_theme(self):
""" empty themes should be ignored """
"""
book = models.Book.from_text_and_meta(ContentFile(book_text), self.book_info)
- self.assert_([('theme', 'love')],
+ self.assertTrue([('theme', 'love')],
book.fragments.all()[0].tags.filter(category='theme').values_list('category', 'slug'))
def test_book_with_no_theme(self):
-{% load staticfiles %}
+{% load static %}
<img src="{% static 'club/paypal.png' %}">
-{% load staticfiles %}
+{% load static %}
<img src="{% static 'club/payu/payu.png' %}">
<img src="{% static 'club/visa-100.png' %}">
<img src="{% static 'club/mastercard.png' %}">
-{% load staticfiles %}
+{% load static %}
<img src="{% static 'club/payu/payu.png' %}">
<img src="{% static 'club/payu/blik.png' %}">
<img src="{% static 'club/visa-100.png' %}">
{% extends "base/base.html" %}
{% load i18n %}
{% load chunks %}
-{% load static from staticfiles %}
+{% load static from static %}
{% block title %}{% trans "Wolne Lektury Friend Club" %}{% endblock %}
{% endif %}
{% chunk "klub_info" %}
</div>
-{% endblock %}
\ No newline at end of file
+{% endblock %}
{% extends "catalogue/viewer_base.html" %}
{% load i18n %}
-{% load static from staticfiles %}
+{% load static from static %}
{% load catalogue_tags %}
{% load thumbnail %}
{% extends "base/base.html" %}
{% load i18n %}
-{% load static from staticfiles %}
+{% load static from static %}
{% block titleextra %}
{% if file_url %}
# external
'django.contrib.auth',
'django.contrib.contenttypes',
+ 'django.contrib.messages',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.admin',
),
'context_processors': (
'django.contrib.auth.context_processors.auth',
+ 'django.contrib.messages.context_processors.messages',
'django.template.context_processors.debug',
'django.template.context_processors.i18n',
'django.template.context_processors.media',
{% load socialaccount %}
-{% load static from staticfiles %}
+
+{% load static from static %}
{% get_providers as providers %}
{% for provider in providers %}