a
    5Xh                     @   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   ]/var/www/viveiro_mudafortebrasil/venv/lib/python3.9/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   