o
    `©ZhÊ  ã                   @   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y$   t tdƒ| ƒ‚w |ƒ }t|ddƒp0| j|_|jp8d| |_|jp@d| |_|| ƒ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   úO/var/www/html/lang_env/lib/python3.10/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    