ó
®â0_c           @  s-   d  d l  m Z d  d l m Z d „  Z d S(   iÿÿÿÿ(   t   unicode_literals(   t   appsc         C  sM   t  j d ƒ r/ d d l m } | j j |  ƒ Sd d l m } | |  ƒ Sd S(   u“   
    Checks if contrib.sites is installed and returns either the current
    ``Site`` object or a ``RequestSite`` object based on the request.
    u   django.contrib.sitesi   (   t   Site(   t   RequestSiteN(   R   t   is_installedt   modelsR   t   objectst   get_currentt   requestsR   (   t   requestR   R   (    (    s@   /tmp/pip-unpacked-wheel-BAJOf3/django/contrib/sites/shortcuts.pyt   get_current_site   s
    N(   t
   __future__R    t   django.appsR   R
   (    (    (    s@   /tmp/pip-unpacked-wheel-BAJOf3/django/contrib/sites/shortcuts.pyt   <module>   s   