a
    [f                     @   s&   d dl mZ d dlmZ dddZdS )    )Http404)gettextNc                 C   s   |st td|dd }z|| }W n" tyL   t td| Y n0 | }t|ddpd| j|_|jptd| |_|jpd| |_|| S )	z%Provided for backwards compatibility.zNo feeds are registered./r   u   Slug %r isn’t registered.feed_urlNzfeeds/%s_title.htmlzfeeds/%s_description.html)	r   _	partitionKeyErrorgetattrpathr   Ztitle_templateZdescription_template)requesturlZ	feed_dictZslugfinstance r   jC:\Users\91910\OneDrive\Desktop\vts_admin_rebuild-master\vts\Lib\site-packages\django/contrib/gis/views.pyfeed   s    r   )N)Zdjango.httpr   Zdjango.utils.translationr   r   r   r   r   r   r   <module>   s   