django1/django/contrib/admindocs
Unai Zalakain c7634cd7fe Fixed #7603 -- Added a 'scheme' property to the HttpRequest object
`HttpRequest.scheme` is `https` if `settings.SECURE_PROXY_SSL_HEADER` is
appropriately set and falls back to `HttpRequest._get_scheme()` (a hook
for subclasses to implement) otherwise.

`WSGIRequest._get_scheme()` makes use of the `wsgi.url_scheme` WSGI
environ variable to determine the request scheme.

`HttpRequest.is_secure()` simply checks if `HttpRequest.scheme` is
`https`.

This provides a way to check the current scheme in templates, for example.
It also allows us to deal with other schemes.

Thanks nslater for the suggestion.
2013-10-15 09:04:12 -04:00
..
locale Fixed admindoc template errors introduced by 02fd87c821. 2013-06-02 00:32:29 -04:00
templates/admin_doc Fixed admindoc template errors introduced by 02fd87c821. 2013-06-02 00:32:29 -04:00
tests Removed most of absolute_import imports 2013-07-29 20:28:13 +02:00
__init__.py Merged the newforms-admin branch into trunk. 2008-07-18 23:54:34 +00:00
middleware.py Fixed #20126 -- XViewMiddleware moved to django.contrib.admindocs.middleware 2013-05-19 13:18:35 +02:00
models.py Fixed #7977: Fixed admindocs to use docstrings instead of a static array to locate type information. 2009-12-12 20:25:41 +00:00
urls.py Fixed #14675 -- Completed removal of `from django.conf.urls.default import *` usage. 2011-09-11 22:36:16 +00:00
utils.py Fixed #6681 -- Don't break docutils when rendering reStructuredText. 2013-10-04 13:27:08 -04:00
views.py Fixed #7603 -- Added a 'scheme' property to the HttpRequest object 2013-10-15 09:04:12 -04:00