mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Fixed #15002 - Fix title casing to conform to style guidelines. thanks adamv.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15135 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
===============
|
||||
View Decorators
|
||||
View decorators
|
||||
===============
|
||||
|
||||
.. currentmodule:: django.views.decorators.http
|
||||
@@ -7,7 +7,7 @@ View Decorators
|
||||
Django provides several decorators that can be applied to views to support
|
||||
various HTTP features.
|
||||
|
||||
Allowed HTTP Methods
|
||||
Allowed HTTP methods
|
||||
====================
|
||||
|
||||
.. function:: require_http_methods(request_method_list)
|
||||
@@ -47,7 +47,7 @@ headers; see
|
||||
|
||||
.. currentmodule:: django.views.decorators.http
|
||||
|
||||
GZip Compression
|
||||
GZip compression
|
||||
================
|
||||
|
||||
.. function:: gzip_page()
|
||||
@@ -58,7 +58,7 @@ storage on the ``Accept-Encoding`` header.
|
||||
|
||||
.. currentmodule:: django.views.decorators.vary
|
||||
|
||||
Vary Headers
|
||||
Vary headers
|
||||
============
|
||||
|
||||
The ``Vary`` header defines which request headers a cache mechanism should take
|
||||
|
||||
@@ -462,7 +462,7 @@ included URLconf, as expected.
|
||||
|
||||
.. _topics-http-defining-url-namespaces:
|
||||
|
||||
Defining URL Namespaces
|
||||
Defining URL namespaces
|
||||
-----------------------
|
||||
|
||||
When you need to deploy multiple instances of a single application, it can be
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
=============
|
||||
Writing Views
|
||||
Writing views
|
||||
=============
|
||||
|
||||
A view function, or *view* for short, is simply a Python function that takes a
|
||||
@@ -52,7 +52,7 @@ Let's step through this code one line at a time:
|
||||
``America/Chicago``. This probably isn't where you live, so you might want
|
||||
to change it in your settings file.
|
||||
|
||||
Mapping URLs to Views
|
||||
Mapping URLs to views
|
||||
=====================
|
||||
|
||||
So, to recap, this view function returns an HTML page that includes the current
|
||||
|
||||
Reference in New Issue
Block a user