
vÅÏ^E  ã               @   s    d  d l  m Z d d „  Z d S)é    )Úappsc             C   sM   t  j d ƒ r/ d d l m } | j j |  ƒ Sd d l m } | |  ƒ Sd S)z‘
    Check if contrib.sites is installed and return either the current
    ``Site`` object or a ``RequestSite`` object based on the request.
    zdjango.contrib.sitesé   )ÚSite)ÚRequestSiteN)r   Zis_installedÚmodelsr   ZobjectsZget_currentÚrequestsr   )Úrequestr   r   © r	   ú@/tmp/pip-build-8lau8j11/django/django/contrib/sites/shortcuts.pyÚget_current_site   s
    r   N)Zdjango.appsr   r   r	   r	   r	   r
   Ú<module>   s   