# Path: dju_common/http.py
# def full_url(path=None, secure=None, request=None):
#     if secure is None:
#         secure = dju_settings.USE_HTTPS
#     site = Site.objects.get_current(request)
#     return '{}://{}{}'.format((secure and 'https' or 'http'), site.domain, path or '')


from django.contrib.sites.models import Site
from dju_common.http import full_url


def static(request=None):
    return {
        'STATIC_CP_VALUE': 'STATIC_CP_VALUE_OK',
        'SITE': Site.objects.get_current,

# Path: dju_common/http.py
# def full_url(path=None, secure=None, request=None):
#     if secure is None:
#         secure = dju_settings.USE_HTTPS
#     site = Site.objects.get_current(request)
#     return '{}://{}{}'.format((secure and 'https' or 'http'), site.domain, path or '')


# Path: tests/context_processors.py
from django.contrib.sites.models import Site
from dju_common.http import full_url



def static(request=None):
    return {
        'STATIC_CP_VALUE': 'STATIC_CP_VALUE_OK',
        'SITE': Site.objects.get_current,

        'HOMEPAGE_URL': full_url,