diff options
author | Dan McGee <dan@archlinux.org> | 2014-06-28 13:10:53 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2014-09-01 18:26:05 -0500 |
commit | 28d486870de2c68b53e544a7082c991983d0d763 (patch) | |
tree | 91dc22627a052462213f5131492ad63028192cb2 /packages | |
parent | df672693d9530acadcac0cbc75553749fb58f9cd (diff) |
More changes for move to Django 1.7
The removal of the root `__init__.py` file is so the testing framework
does consistent imports of our models now that the loading strategy has
changed.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'packages')
-rw-r--r-- | packages/views/__init__.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/packages/views/__init__.py b/packages/views/__init__.py index c1f0f492..46c99985 100644 --- a/packages/views/__init__.py +++ b/packages/views/__init__.py @@ -27,10 +27,7 @@ from .signoff import signoffs, signoff_package, signoff_options, signoffs_json @require_safe @cache_control(public=True, max_age=86400) def opensearch(request): - if request.is_secure(): - domain = "https://%s" % request.META['HTTP_HOST'] - else: - domain = "http://%s" % request.META['HTTP_HOST'] + domain = "%s://%s" % (request.scheme, request.META['HTTP_HOST']) return render(request, 'packages/opensearch.xml', {'domain': domain}, |