From: Jan Szejko Date: Tue, 28 Mar 2017 15:02:25 +0000 (+0200) Subject: new style for urlpatterns X-Git-Tag: 0.5.2 X-Git-Url: https://git.mdrn.pl/django-migdal.git/commitdiff_plain/97514d941904c72e9d541ea4bbe4f49e72529ea1?ds=sidebyside new style for urlpatterns --- diff --git a/migdal/urls.py b/migdal/urls.py index efe67c9..8428c9d 100644 --- a/migdal/urls.py +++ b/migdal/urls.py @@ -3,7 +3,7 @@ # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. # from django.conf import settings -from django.conf.urls import patterns, url +from django.conf.urls import url from django.utils.translation import ugettext_lazy as _ from django.utils.translation import string_concat from migdal import feeds, app_settings @@ -48,10 +48,10 @@ urlpatterns = i18n_patterns( if 'django.contrib.sitemaps' in settings.INSTALLED_APPS: + import django.contrib.sitemaps.views from .sitemap import sitemaps - urlpatterns += patterns( - '', - url(r'^sitemap\.xml$', 'django.contrib.sitemaps.views.sitemap', { + urlpatterns += ( + url(r'^sitemap\.xml$', django.contrib.sitemaps.views.sitemap, { 'sitemaps': sitemaps }), ) diff --git a/setup.py b/setup.py index 317ca68..0d5a48f 100755 --- a/setup.py +++ b/setup.py @@ -23,7 +23,7 @@ def whole_trees(package_dir, paths): setup( name='django-migdal', - version='0.5.1', + version='0.5.2', author='Radek Czajka', author_email='radoslaw.czajka@nowoczesnapolska.org.pl', url='',