From 97514d941904c72e9d541ea4bbe4f49e72529ea1 Mon Sep 17 00:00:00 2001 From: Jan Szejko Date: Tue, 28 Mar 2017 17:02:25 +0200 Subject: [PATCH] new style for urlpatterns --- migdal/urls.py | 8 ++++---- setup.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) 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='', -- 2.20.1