ķ
rąE^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-4tV8Ix/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-4tV8Ix/django/contrib/gis/views.pyt   <module>   s   