-i https://py.mdrn.pl/simple/
# django
-Django>=1.10,<1.11
+Django==1.11.20
fnpdjango==0.3
-django-pipeline==1.6.10
+django-pipeline==1.6.13
jsmin
fnp-django-pagination==2.2.2
django-maintenancemode==0.10
jsonfield==2.0.2
django-picklefield>=1.0,<1.1
-django-modeltranslation==0.12
-django-allauth>=0.32,<0.33
+django-modeltranslation==0.12.1
+django-allauth==0.38.0
django-extensions==1.7.8
djangorestframework<3.7
djangorestframework-xml
pyyaml
polib
-django-babel==0.6.0
+django-babel==0.6.1
pytz
_book_parent_img = lazy(lambda: full_url(os.path.join(settings.STATIC_URL, "img/book-parent.png")), str)()
try:
_book_parent_img_size = unicode(os.path.getsize(os.path.join(settings.STATIC_ROOT, "img/book-parent.png")))
- except IOError:
+ except OSError:
_book_parent_img_size = ''
_book_img = lazy(lambda: full_url(os.path.join(settings.STATIC_URL, "img/book.png")), str)()
try:
_book_img_size = unicode(os.path.getsize(os.path.join(settings.STATIC_ROOT, "img/book.png")))
- except IOError:
+ except OSError:
_book_img_size = ''
def add_root_elements(self, handler):
# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
#
from django import forms
-from django.forms.widgets import flatatt
+from django.forms.utils import flatatt
from django.utils.encoding import smart_unicode
from django.utils.safestring import mark_safe
from json import dumps
return u'$(\'#%s\').autocomplete(%s).result(autocomplete_result_handler);' % (field_id, options)
def render(self, name, value=None, attrs=None):
- final_attrs = self.build_attrs(attrs, name=name)
+ final_attrs = self.build_attrs(self.attrs, attrs)
if value:
final_attrs['value'] = smart_unicode(value)
}
STATICFILES_STORAGE = 'fnpdjango.pipeline_storage.GzipPipelineCachedStorage'
+#STATICFILES_STORAGE = 'pipeline.storage.PipelineCachedStorage'
# PIPELINE_PYSCSS_BINARY = '/usr/bin/env pyscss'
# PIPELINE_PYSCSS_ARGUMENTS = ''
STATICFILES_FINDERS = [
'django.contrib.staticfiles.finders.FileSystemFinder',
'django.contrib.staticfiles.finders.AppDirectoriesFinder',
+ 'pipeline.finders.CachedFileFinder',
'pipeline.finders.PipelineFinder',
]