ó
®â0_c           @   sJ   d  d l  m Z d  d l m Z d  d l m Z d e f d „  ƒ  YZ d S(   iÿÿÿÿ(   t   apps(   t   Sitemap(   t   ImproperlyConfiguredt   FlatPageSitemapc           B   s   e  Z d  „  Z RS(   c         C   sO   t  j d ƒ s t d ƒ ‚ n  t  j d ƒ } | j j ƒ  } | j j d t ƒ S(   Ns   django.contrib.sitessE   FlatPageSitemap requires django.contrib.sites, which isn't installed.s
   sites.Sitet   registration_required(	   t   django_appst   is_installedR   t	   get_modelt   objectst   get_currentt   flatpage_sett   filtert   False(   t   selft   Sitet   current_site(    (    sC   /tmp/pip-unpacked-wheel-BAJOf3/django/contrib/flatpages/sitemaps.pyt   items   s
    (   t   __name__t
   __module__R   (    (    (    sC   /tmp/pip-unpacked-wheel-BAJOf3/django/contrib/flatpages/sitemaps.pyR      s   N(   t   django.appsR    R   t   django.contrib.sitemapsR   t   django.core.exceptionsR   R   (    (    (    sC   /tmp/pip-unpacked-wheel-BAJOf3/django/contrib/flatpages/sitemaps.pyt   <module>   s   