X-Git-Url: https://git.mdrn.pl/django-migdal.git/blobdiff_plain/a3983327291548497d9bdd3db5976b895675b25e..c176b125612945be925d25922a6fe1db4d1def50:/migdal/sitemap.py diff --git a/migdal/sitemap.py b/migdal/sitemap.py index 7da7c38..049d7e1 100755 --- a/migdal/sitemap.py +++ b/migdal/sitemap.py @@ -1,7 +1,12 @@ +# -*- coding: utf-8 -*- +# This file is part of PrawoKultury, licensed under GNU Affero GPLv3 or later. +# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. +# from django.contrib.sitemaps import Sitemap from django.utils.translation import override +from . import app_settings from .models import Entry -from django.conf import settings + class MigdalSitemap(Sitemap): changefreq = "never" @@ -22,5 +27,5 @@ class MigdalSitemap(Sitemap): sitemaps = {} -for lc, ln in settings.LANGUAGES: +for lc, ln in app_settings.LANGUAGES: sitemaps['entry_%s' % lc] = MigdalSitemap(lc)