ó
®â0_c           @  s@   d  d l  m Z d  d l m Z d  d l m Z d d „ Z d S(   iÿÿÿÿ(   t   unicode_literals(   t   Http404(   t   ugettextc         C  sÃ   | s t  t d ƒ ƒ ‚ n  | j d ƒ d } y | | } Wn' t k
 re t  t d ƒ | ƒ ‚ n X| ƒ  } t | d d ƒ p‡ |  j | _ | j p d | | _ | j	 p³ d | | _	 | |  ƒ S(	   u%   Provided for backwards compatibility.u   No feeds are registered.u   /i    u   Slug %r isn't registered.u   feed_urlu   feeds/%s_title.htmlu   feeds/%s_description.htmlN(
   R   t   _t	   partitiont   KeyErrort   getattrt   Nonet   patht   feed_urlt   title_templatet   description_template(   t   requestt   urlt	   feed_dictt   slugt   ft   instance(    (    s:   /tmp/pip-unpacked-wheel-BAJOf3/django/contrib/gis/views.pyt   feed   s    	N(	   t
   __future__R    t   django.httpR   t   django.utils.translationR   R   R   R   (    (    (    s:   /tmp/pip-unpacked-wheel-BAJOf3/django/contrib/gis/views.pyt   <module>   s   