1 # -*- coding: utf-8 -*-
3 # This file is part of FNP-Redakcja, licensed under GNU Affero GPLv3 or later.
4 # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
6 from urllib import FancyURLopener
7 from django.contrib.sites.models import Site
10 class URLOpener(urllib.FancyURLopener):
13 return 'FNP Redakcja (http://%s)' % Site.objects.get_current()