-
From efefe283b861da61c75961b1db8f6e9af7dcc89e Mon Sep 17 00:00:00 2001
From: Derek Willis <dwillis@gmail.com>
Date: Tue, 21 Sep 2010 20:35:49 -0400
Subject: [PATCH] changed web to Web and website to Web site in various places
---
docs/howto/jython.txt | 2 +-
docs/internals/committers.txt | 4 ++--
docs/internals/svn.txt | 6 +++---
docs/intro/index.txt | 2 +-
docs/intro/whatsnext.txt | 4 ++--
docs/misc/api-stability.txt | 2 +-
docs/ref/contrib/gis/deployment.txt | 2 +-
docs/ref/contrib/gis/index.txt | 4 ++--
docs/ref/contrib/gis/install.txt | 6 +++---
docs/ref/contrib/gis/model-api.txt | 4 ++--
docs/ref/contrib/gis/tutorial.txt | 8 ++++----
docs/ref/contrib/gis/utils.txt | 2 +-
docs/ref/contrib/sites.txt | 2 +-
docs/ref/forms/widgets.txt | 4 ++--
docs/ref/middleware.txt | 2 +-
docs/ref/request-response.txt | 6 +++---
docs/ref/templates/builtins.txt | 2 +-
docs/releases/1.0.txt | 2 +-
docs/releases/1.1-beta-1.txt | 2 +-
docs/releases/1.1.txt | 2 +-
docs/topics/auth.txt | 2 +-
docs/topics/conditional-view-processing.txt | 2 +-
docs/topics/email.txt | 2 +-
docs/topics/forms/media.txt | 4 ++--
docs/topics/http/middleware.txt | 2 +-
docs/topics/http/urls.txt | 4 ++--
docs/topics/install.txt | 6 +++---
tests/modeltests/custom_columns/tests.py | 4 ++--
.../custom_columns_regress/models.py | 4 ++--
tests/regressiontests/file_storage/tests.py | 2 +-
django/contrib/gis/gdal/srs.py | 2 +-
django/contrib/sessions/models.py | 2 +-
django/core/handlers/base.py | 2 +-
django/core/servers/fastcgi.py | 2 +-
docs/howto/deployment/fastcgi.txt | 6 +++---
docs/howto/deployment/modpython.txt | 2 +-
36 files changed, 58 insertions(+), 58 deletions(-)
diff --git a/docs/howto/jython.txt b/docs/howto/jython.txt
index 673c936..1bf8d6c 100644
a
|
b
|
on top of Jython.
|
51 | 51 | .. _`django-jython`: http://code.google.com/p/django-jython/ |
52 | 52 | |
53 | 53 | To install it, follow the `installation instructions`_ detailed on the project |
54 | | website. Also, read the `database backends`_ documentation there. |
| 54 | Web site. Also, read the `database backends`_ documentation there. |
55 | 55 | |
56 | 56 | .. _`installation instructions`: http://code.google.com/p/django-jython/wiki/Install |
57 | 57 | .. _`database backends`: http://code.google.com/p/django-jython/wiki/DatabaseBackends |
-
diff --git a/docs/internals/committers.txt b/docs/internals/committers.txt
index b0bb18b..42a2ba3 100644
a
|
b
|
Journal-World`_ of Lawrence, Kansas, USA.
|
39 | 39 | |
40 | 40 | `Wilson Miner`_ |
41 | 41 | Wilson's design-fu is what makes Django look so nice. He designed the |
42 | | website you're looking at right now, as well as Django's acclaimed admin |
| 42 | Web site you're looking at right now, as well as Django's acclaimed admin |
43 | 43 | interface. Wilson is the designer for EveryBlock_. |
44 | 44 | |
45 | 45 | Wilson lives in San Francisco, USA. |
… |
… |
Joseph Kocherhans
|
134 | 134 | |
135 | 135 | `Brian Rosner`_ |
136 | 136 | Brian is currently the tech lead at Eldarion_ managing and developing |
137 | | Django / Pinax_ based websites. He enjoys learning more about programming |
| 137 | Django / Pinax_ based Web sites. He enjoys learning more about programming |
138 | 138 | languages and system architectures and contributing to open source |
139 | 139 | projects. Brian is the host of the `Django Dose`_ podcasts. |
140 | 140 | |
-
diff --git a/docs/internals/svn.txt b/docs/internals/svn.txt
index c66e494..9efbe28 100644
a
|
b
|
The Django source code repository uses `Subversion`_ to track changes
|
22 | 22 | to the code over time, so you'll need a copy of the Subversion client |
23 | 23 | (a program called ``svn``) on your computer, and you'll want to |
24 | 24 | familiarize yourself with the basics of how Subversion |
25 | | works. Subversion's web site offers downloads for various operating |
| 25 | works. Subversion's Web site offers downloads for various operating |
26 | 26 | systems, and `a free online book`_ is available to help you get up to |
27 | 27 | speed with using Subversion. |
28 | 28 | |
… |
… |
repository address instead. At the top level of the repository are two
|
34 | 34 | directories: ``django`` contains the full source code for all Django |
35 | 35 | releases, while ``djangoproject.com`` contains the source code and |
36 | 36 | templates for the `djangoproject.com <http://www.djangoproject.com/>`_ |
37 | | web site. For trying out in-development Django code, or contributing |
| 37 | Web site. For trying out in-development Django code, or contributing |
38 | 38 | to Django, you'll always want to check out code from some location in |
39 | 39 | the ``django`` directory. |
40 | 40 | |
… |
… |
into three areas:
|
58 | 58 | |
59 | 59 | .. _Subversion: http://subversion.tigris.org/ |
60 | 60 | .. _a free online book: http://svnbook.red-bean.com/ |
61 | | .. _A friendly web-based interface for browsing the code: http://code.djangoproject.com/browser/ |
| 61 | .. _A friendly Web-based interface for browsing the code: http://code.djangoproject.com/browser/ |
62 | 62 | |
63 | 63 | |
64 | 64 | Working with Django's trunk |
-
diff --git a/docs/intro/index.txt b/docs/intro/index.txt
index 90ee627..bc61be7 100644
a
|
b
|
|
1 | 1 | Getting started |
2 | 2 | =============== |
3 | 3 | |
4 | | New to Django? Or to web development in general? Well, you came to the right |
| 4 | New to Django? Or to Web development in general? Well, you came to the right |
5 | 5 | place: read this material to quickly get up and running. |
6 | 6 | |
7 | 7 | .. toctree:: |
-
diff --git a/docs/intro/whatsnext.txt b/docs/intro/whatsnext.txt
index fe385ff..00c1654 100644
a
|
b
|
Django's main documentation is broken up into "chunks" designed to fill
|
36 | 36 | different needs: |
37 | 37 | |
38 | 38 | * The :doc:`introductory material </intro/index>` is designed for people new |
39 | | to Django -- or to web development in general. It doesn't cover anything |
| 39 | to Django -- or to Web development in general. It doesn't cover anything |
40 | 40 | in depth, but instead gives a high-level overview of how developing in |
41 | 41 | Django "feels". |
42 | 42 | |
… |
… |
You can get a local copy of the HTML documentation following a few easy steps:
|
166 | 166 | |
167 | 167 | * Django's documentation uses a system called Sphinx__ to convert from |
168 | 168 | plain text to HTML. You'll need to install Sphinx by either downloading |
169 | | and installing the package from the Sphinx website, or by Python's |
| 169 | and installing the package from the Sphinx Web site, or by Python's |
170 | 170 | ``easy_install``: |
171 | 171 | |
172 | 172 | .. code-block:: bash |
-
diff --git a/docs/misc/api-stability.txt b/docs/misc/api-stability.txt
index 70e5221..456d84b 100644
a
|
b
|
Contributed applications (``django.contrib``)
|
125 | 125 | |
126 | 126 | While we'll make every effort to keep these APIs stable -- and have no plans to |
127 | 127 | break any contrib apps -- this is an area that will have more flux between |
128 | | releases. As the web evolves, Django must evolve with it. |
| 128 | releases. As the Web evolves, Django must evolve with it. |
129 | 129 | |
130 | 130 | However, any changes to contrib apps will come with an important guarantee: |
131 | 131 | we'll make sure it's always possible to use an older version of a contrib app if |
-
diff --git a/docs/ref/contrib/gis/deployment.txt b/docs/ref/contrib/gis/deployment.txt
index fa7fe69..9100ff8 100644
a
|
b
|
Deploying GeoDjango
|
8 | 8 | not thread safe at this time. Thus, it is *highly* recommended |
9 | 9 | to not use threading when deploying -- in other words, use a |
10 | 10 | an appropriate configuration of Apache or the prefork method |
11 | | when using FastCGI through another web server. |
| 11 | when using FastCGI through another Web server. |
12 | 12 | |
13 | 13 | Apache |
14 | 14 | ====== |
-
diff --git a/docs/ref/contrib/gis/index.txt b/docs/ref/contrib/gis/index.txt
index 074fa3a..c4959e0 100644
a
|
b
|
GeoDjango
|
9 | 9 | .. module:: django.contrib.gis |
10 | 10 | :synopsis: Geographic Information System (GIS) extensions for Django |
11 | 11 | |
12 | | GeoDjango intends to be a world-class geographic web framework. Its goal is to |
13 | | make it as easy as possible to build GIS web applications and harness the power |
| 12 | GeoDjango intends to be a world-class geographic Web framework. Its goal is to |
| 13 | make it as easy as possible to build GIS Web applications and harness the power |
14 | 14 | of spatially enabled data. |
15 | 15 | |
16 | 16 | .. toctree:: |
-
diff --git a/docs/ref/contrib/gis/install.txt b/docs/ref/contrib/gis/install.txt
index ae36e16..f4ae574 100644
a
|
b
|
internal geometry representation used by GeoDjango (it's behind the "lazy"
|
147 | 147 | geometries). Specifically, the C API library is called (e.g., ``libgeos_c.so``) |
148 | 148 | directly from Python using ctypes. |
149 | 149 | |
150 | | First, download GEOS 3.2 from the refractions website and untar the source |
| 150 | First, download GEOS 3.2 from the refractions Web site and untar the source |
151 | 151 | archive:: |
152 | 152 | |
153 | 153 | $ wget http://download.osgeo.org/geos/geos-3.2.2.tar.bz2 |
… |
… |
Windows XP
|
1085 | 1085 | Python |
1086 | 1086 | ^^^^^^ |
1087 | 1087 | |
1088 | | First, download the `Python 2.6 installer`__ from the Python website. Next, |
| 1088 | First, download the `Python 2.6 installer`__ from the Python Web site. Next, |
1089 | 1089 | execute the installer and use defaults, e.g., keep 'Install for all users' |
1090 | 1090 | checked and the installation path set as ``C:\Python26``. |
1091 | 1091 | |
… |
… |
PostgreSQL
|
1101 | 1101 | ^^^^^^^^^^ |
1102 | 1102 | |
1103 | 1103 | First, select a mirror and download the latest `PostgreSQL 8.3 installer`__ from |
1104 | | the EnterpriseDB website. |
| 1104 | the EnterpriseDB Web site. |
1105 | 1105 | |
1106 | 1106 | .. note:: |
1107 | 1107 | |
-
diff --git a/docs/ref/contrib/gis/model-api.txt b/docs/ref/contrib/gis/model-api.txt
index cf73747..b6d92dd 100644
a
|
b
|
corresponds to the projection system that will be used to interpret the data
|
97 | 97 | in the spatial database. [#fnsrid]_ Projection systems give the context to the |
98 | 98 | coordinates that specify a location. Although the details of `geodesy`__ are |
99 | 99 | beyond the scope of this documentation, the general problem is that the earth |
100 | | is spherical and representations of the earth (e.g., paper maps, web maps) |
| 100 | is spherical and representations of the earth (e.g., paper maps, Web maps) |
101 | 101 | are not. |
102 | 102 | |
103 | 103 | Most people are familiar with using latitude and longitude to reference a |
… |
… |
Additional Resources:
|
133 | 133 | |
134 | 134 | * `spatialreference.org`__: A Django-powered database of spatial reference |
135 | 135 | systems. |
136 | | * `The State Plane Coordinate System`__: A website covering the various |
| 136 | * `The State Plane Coordinate System`__: A Web site covering the various |
137 | 137 | projection systems used in the United States. Much of the U.S. spatial |
138 | 138 | data encountered will be in one of these coordinate systems rather than |
139 | 139 | in a geographic coordinate system such as WGS84. |
-
diff --git a/docs/ref/contrib/gis/tutorial.txt b/docs/ref/contrib/gis/tutorial.txt
index 3a56c2e..69c60de 100644
a
|
b
|
Introduction
|
6 | 6 | ============ |
7 | 7 | |
8 | 8 | GeoDjango is an add-on for Django that turns it into a world-class geographic |
9 | | web framework. GeoDjango strives to make at as simple as possible to create |
10 | | geographic web applications, like location-based services. Some features include: |
| 9 | Web framework. GeoDjango strives to make at as simple as possible to create |
| 10 | geographic Web applications, like location-based services. Some features include: |
11 | 11 | |
12 | 12 | * Django model fields for `OGC`_ geometries. |
13 | 13 | * Extensions to Django's ORM for the querying and manipulation of spatial data. |
… |
… |
yourself with basic Django concepts.
|
26 | 26 | for more details. |
27 | 27 | |
28 | 28 | This tutorial is going to guide you through guide the user through the creation |
29 | | of a geographic web application for viewing the `world borders`_. [#]_ Some of |
| 29 | of a geographic Web application for viewing the `world borders`_. [#]_ Some of |
30 | 30 | the code used in this tutorial is taken from and/or inspired by the |
31 | 31 | `GeoDjango basic apps`_ project. [#]_ |
32 | 32 | |
… |
… |
as well as detailed information for each attribute field. For example,
|
197 | 197 | ``FIPS: String (2.0)`` indicates that there's a ``FIPS`` character field |
198 | 198 | with a maximum length of 2; similarly, ``LON: Real (8.3)`` is a floating-point |
199 | 199 | field that holds a maximum of 8 digits up to three decimal places. Although |
200 | | this information may be found right on the `world borders`_ website, this shows |
| 200 | this information may be found right on the `world borders`_ Web site, this shows |
201 | 201 | you how to determine this information yourself when such metadata is not |
202 | 202 | provided. |
203 | 203 | |
-
diff --git a/docs/ref/contrib/gis/utils.txt b/docs/ref/contrib/gis/utils.txt
index 8b14802..9f8e518 100644
a
|
b
|
GeoDjango Utilities
|
8 | 8 | :synopsis: GeoDjango's collection of utilities. |
9 | 9 | |
10 | 10 | The :mod:`django.contrib.gis.utils` module contains various utilities that are |
11 | | useful in creating geospatial web applications. |
| 11 | useful in creating geospatial Web applications. |
12 | 12 | |
13 | 13 | .. toctree:: |
14 | 14 | :maxdepth: 2 |
-
diff --git a/docs/ref/contrib/sites.txt b/docs/ref/contrib/sites.txt
index 7ff05a5..0a51025 100644
a
|
b
|
The "sites" framework
|
3 | 3 | ===================== |
4 | 4 | |
5 | 5 | .. module:: django.contrib.sites |
6 | | :synopsis: Lets you operate multiple web sites from the same database and |
| 6 | :synopsis: Lets you operate multiple Web sites from the same database and |
7 | 7 | Django project |
8 | 8 | |
9 | 9 | Django comes with an optional "sites" framework. It's a hook for associating |
-
diff --git a/docs/ref/forms/widgets.txt b/docs/ref/forms/widgets.txt
index 05215d4..37c1210 100644
a
|
b
|
Customizing widget instances
|
202 | 202 | When Django renders a widget as HTML, it only renders the bare minimum |
203 | 203 | HTML - Django doesn't add a class definition, or any other widget-specific |
204 | 204 | attributes. This means that all 'TextInput' widgets will appear the same |
205 | | on your web page. |
| 205 | on your Web page. |
206 | 206 | |
207 | 207 | If you want to make one widget look different to another, you need to |
208 | 208 | specify additional attributes for each widget. When you specify a |
… |
… |
each widget will be rendered exactly the same::
|
227 | 227 | <tr><th>Comment:</th><td><input type="text" name="comment" /></td></tr> |
228 | 228 | |
229 | 229 | |
230 | | On a real web page, you probably don't want every widget to look the same. You |
| 230 | On a real Web page, you probably don't want every widget to look the same. You |
231 | 231 | might want a larger input element for the comment, and you might want the 'name' |
232 | 232 | widget to have some special CSS class. To do this, you use the ``attrs`` |
233 | 233 | argument when creating the widget: |
-
diff --git a/docs/ref/middleware.txt b/docs/ref/middleware.txt
index 290ea27..de2a99f 100644
a
|
b
|
Transaction middleware
|
193 | 193 | ---------------------- |
194 | 194 | |
195 | 195 | .. module:: django.middleware.transaction |
196 | | :synopsis: Middleware binding a database transaction to each web request. |
| 196 | :synopsis: Middleware binding a database transaction to each Web request. |
197 | 197 | |
198 | 198 | .. class:: django.middleware.transaction.TransactionMiddleware |
199 | 199 | |
-
diff --git a/docs/ref/request-response.txt b/docs/ref/request-response.txt
index b8b0882..8d2ce12 100644
a
|
b
|
All attributes except ``session`` should be considered read-only.
|
37 | 37 | |
38 | 38 | .. attribute:: HttpRequest.path_info |
39 | 39 | |
40 | | Under some web server configurations, the portion of the URL after the host |
| 40 | Under some Web server configurations, the portion of the URL after the host |
41 | 41 | name is split up into a script prefix portion and a path info portion |
42 | 42 | (this happens, for example, when using the ``django.root`` option |
43 | 43 | with the :ref:`modpython handler from Apache <howto-deployment-modpython>`). |
44 | 44 | The ``path_info`` attribute always contains the path info portion of the |
45 | | path, no matter what web server is being used. Using this instead of |
| 45 | path, no matter what Web server is being used. Using this instead of |
46 | 46 | attr:`~HttpRequest.path` can make your code much easier to move between test |
47 | 47 | and deployment servers. |
48 | 48 | |
… |
… |
All attributes except ``session`` should be considered read-only.
|
152 | 152 | * ``QUERY_STRING`` -- The query string, as a single (unparsed) string. |
153 | 153 | * ``REMOTE_ADDR`` -- The IP address of the client. |
154 | 154 | * ``REMOTE_HOST`` -- The hostname of the client. |
155 | | * ``REMOTE_USER`` -- The user authenticated by the web server, if any. |
| 155 | * ``REMOTE_USER`` -- The user authenticated by the Web server, if any. |
156 | 156 | * ``REQUEST_METHOD`` -- A string such as ``"GET"`` or ``"POST"``. |
157 | 157 | * ``SERVER_NAME`` -- The hostname of the server. |
158 | 158 | * ``SERVER_PORT`` -- The port of the server. |
-
diff --git a/docs/ref/templates/builtins.txt b/docs/ref/templates/builtins.txt
index 85c0b6d..8b242eb 100644
a
|
b
|
See the :doc:`markup documentation </ref/contrib/markup>`.
|
2095 | 2095 | django.contrib.webdesign |
2096 | 2096 | ~~~~~~~~~~~~~~~~~~~~~~~~ |
2097 | 2097 | |
2098 | | A collection of template tags that can be useful while designing a website, |
| 2098 | A collection of template tags that can be useful while designing a Web site, |
2099 | 2099 | such as a generator of Lorem Ipsum text. See :doc:`/ref/contrib/webdesign`. |
2100 | 2100 | |
2101 | 2101 | i18n |
-
diff --git a/docs/releases/1.0.txt b/docs/releases/1.0.txt
index 359490a..a2b6083 100644
a
|
b
|
Welcome to Django 1.0!
|
6 | 6 | |
7 | 7 | We've been looking forward to this moment for over three years, and it's finally |
8 | 8 | here. Django 1.0 represents a the largest milestone in Django's development to |
9 | | date: a web framework that a group of perfectionists can truly be proud of. |
| 9 | date: a Web framework that a group of perfectionists can truly be proud of. |
10 | 10 | |
11 | 11 | Django 1.0 represents over three years of community development as an Open |
12 | 12 | Source project. Django's received contributions from hundreds of developers, |
-
diff --git a/docs/releases/1.1-beta-1.txt b/docs/releases/1.1-beta-1.txt
index 8342396..535f818 100644
a
|
b
|
release, including:
|
142 | 142 | notably, the memcached backend -- these operations will be atomic, and |
143 | 143 | quite fast. |
144 | 144 | |
145 | | * Django now can :doc:`easily delegate authentication to the web server |
| 145 | * Django now can :doc:`easily delegate authentication to the Web server |
146 | 146 | </howto/auth-remote-user>` via a new authentication backend that supports |
147 | 147 | the standard ``REMOTE_USER`` environment variable used for this purpose. |
148 | 148 | |
-
diff --git a/docs/releases/1.1.txt b/docs/releases/1.1.txt
index 39cb0ab..3ca8344 100644
a
|
b
|
Other new features and changes introduced since Django 1.0 include:
|
426 | 426 | notably, the memcached backend -- these operations will be atomic, and |
427 | 427 | quite fast. |
428 | 428 | |
429 | | * Django now can :doc:`easily delegate authentication to the web server |
| 429 | * Django now can :doc:`easily delegate authentication to the Web server |
430 | 430 | </howto/auth-remote-user>` via a new authentication backend that supports |
431 | 431 | the standard ``REMOTE_USER`` environment variable used for this purpose. |
432 | 432 | |
-
diff --git a/docs/topics/auth.txt b/docs/topics/auth.txt
index 8c9b0f1..e0856e8 100644
a
|
b
|
How to log a user out
|
658 | 658 | |
659 | 659 | When you call :func:`~django.contrib.auth.logout()`, the session data for |
660 | 660 | the current request is completely cleaned out. All existing data is |
661 | | removed. This is to prevent another person from using the same web browser |
| 661 | removed. This is to prevent another person from using the same Web browser |
662 | 662 | to log in and have access to the previous user's session data. If you want |
663 | 663 | to put anything into the session that will be available to the user |
664 | 664 | immediately after logging out, do that *after* calling |
-
diff --git a/docs/topics/conditional-view-processing.txt b/docs/topics/conditional-view-processing.txt
index b5da140..c631a13 100644
a
|
b
|
Conditional View Processing
|
6 | 6 | |
7 | 7 | HTTP clients can send a number of headers to tell the server about copies of a |
8 | 8 | resource that they have already seen. This is commonly used when retrieving a |
9 | | web page (using an HTTP ``GET`` request) to avoid sending all the data for |
| 9 | Web page (using an HTTP ``GET`` request) to avoid sending all the data for |
10 | 10 | something the client has already retrieved. However, the same headers can be |
11 | 11 | used for all HTTP methods (``POST``, ``PUT``, ``DELETE``, etc). |
12 | 12 | |
-
diff --git a/docs/topics/email.txt b/docs/topics/email.txt
index 31092b0..33564b6 100644
a
|
b
|
Testing e-mail sending
|
574 | 574 | ====================== |
575 | 575 | |
576 | 576 | There are times when you do not want Django to send e-mails at |
577 | | all. For example, while developing a website, you probably don't want |
| 577 | all. For example, while developing a Web site, you probably don't want |
578 | 578 | to send out thousands of e-mails -- but you may want to validate that |
579 | 579 | e-mails will be sent to the right people under the right conditions, |
580 | 580 | and that those e-mails will contain the correct content. |
-
diff --git a/docs/topics/forms/media.txt b/docs/topics/forms/media.txt
index 64cf507..548095d 100644
a
|
b
|
|
1 | 1 | Form Media |
2 | 2 | ========== |
3 | 3 | |
4 | | Rendering an attractive and easy-to-use web form requires more than just |
| 4 | Rendering an attractive and easy-to-use Web form requires more than just |
5 | 5 | HTML - it also requires CSS stylesheets, and if you want to use fancy |
6 | 6 | "Web2.0" widgets, you may also need to include some JavaScript on each |
7 | 7 | page. The exact combination of CSS and JavaScript that is required for |
… |
… |
you can define a custom Calendar widget. This widget can then be associated
|
14 | 14 | with the CSS and JavaScript that is required to render the calendar. When |
15 | 15 | the Calendar widget is used on a form, Django is able to identify the CSS and |
16 | 16 | JavaScript files that are required, and provide the list of file names |
17 | | in a form suitable for easy inclusion on your web page. |
| 17 | in a form suitable for easy inclusion on your Web page. |
18 | 18 | |
19 | 19 | .. admonition:: Media and Django Admin |
20 | 20 | |
-
diff --git a/docs/topics/http/middleware.txt b/docs/topics/http/middleware.txt
index eee398a..24d2a8e 100644
a
|
b
|
of caveats:
|
152 | 152 | define ``__init__`` as requiring any arguments. |
153 | 153 | |
154 | 154 | * Unlike the ``process_*`` methods which get called once per request, |
155 | | ``__init__`` gets called only *once*, when the web server starts up. |
| 155 | ``__init__`` gets called only *once*, when the Web server starts up. |
156 | 156 | |
157 | 157 | Marking middleware as unused |
158 | 158 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
-
diff --git a/docs/topics/http/urls.txt b/docs/topics/http/urls.txt
index 1f49990..25f18ab 100644
a
|
b
|
Normally, you should always use :func:`~django.core.urlresolvers.reverse` or
|
938 | 938 | :func:`~django.db.models.permalink` to define URLs within your application. |
939 | 939 | However, if your application constructs part of the URL hierarchy itself, you |
940 | 940 | may occasionally need to generate URLs. In that case, you need to be able to |
941 | | find the base URL of the Django project within its web server |
| 941 | find the base URL of the Django project within its Web server |
942 | 942 | (normally, :func:`~django.core.urlresolvers.reverse` takes care of this for |
943 | 943 | you). In that case, you can call ``get_script_prefix()``, which will return the |
944 | 944 | script prefix portion of the URL for your Django project. If your Django |
945 | | project is at the root of its webserver, this is always ``"/"``, but it can be |
| 945 | project is at the root of its Web server, this is always ``"/"``, but it can be |
946 | 946 | changed, for instance by using ``django.root`` (see :ref:`How to use |
947 | 947 | Django with Apache and mod_python <howto-deployment-modpython>`). |
-
diff --git a/docs/topics/install.txt b/docs/topics/install.txt
index 2965c32..782f627 100644
a
|
b
|
Install Apache and mod_wsgi
|
28 | 28 | ============================= |
29 | 29 | |
30 | 30 | If you just want to experiment with Django, skip ahead to the next |
31 | | section; Django includes a lightweight web server you can use for |
| 31 | section; Django includes a lightweight Web server you can use for |
32 | 32 | testing, so you won't need to set up Apache until you're ready to |
33 | 33 | deploy Django in production. |
34 | 34 | |
… |
… |
memory when the server starts. Code stays in memory throughout the
|
40 | 40 | life of an Apache process, which leads to significant performance |
41 | 41 | gains over other server arrangements. In daemon mode, mod_wsgi spawns |
42 | 42 | an independent daemon process that handles requests. The daemon |
43 | | process can run as a different user than the webserver, possibly |
| 43 | process can run as a different user than the Web server, possibly |
44 | 44 | leading to improved security, and the daemon process can be restarted |
45 | | without restarting the entire Apache webserver, possibly making |
| 45 | without restarting the entire Apache Web server, possibly making |
46 | 46 | refreshing your codebase more seamless. Consult the mod_wsgi |
47 | 47 | documentation to determine which mode is right for your setup. Make |
48 | 48 | sure you have Apache installed, with the mod_wsgi module activated. |
-
diff --git a/tests/modeltests/custom_columns/tests.py b/tests/modeltests/custom_columns/tests.py
index e8ec21f..f38f087 100644
a
|
b
|
class CustomColumnsTests(TestCase):
|
9 | 9 | a1 = Author.objects.create(first_name="John", last_name="Smith") |
10 | 10 | a2 = Author.objects.create(first_name="Peter", last_name="Jones") |
11 | 11 | |
12 | | art = Article.objects.create(headline="Django lets you build web apps easily") |
| 12 | art = Article.objects.create(headline="Django lets you build Web apps easily") |
13 | 13 | art.authors = [a1, a2] |
14 | 14 | |
15 | 15 | # Although the table and column names on Author have been set to custom |
… |
… |
class CustomColumnsTests(TestCase):
|
58 | 58 | # Get the articles for an author |
59 | 59 | self.assertQuerysetEqual( |
60 | 60 | a.article_set.all(), [ |
61 | | "Django lets you build web apps easily", |
| 61 | "Django lets you build Web apps easily", |
62 | 62 | ], |
63 | 63 | lambda a: a.headline |
64 | 64 | ) |
-
diff --git a/tests/regressiontests/custom_columns_regress/models.py b/tests/regressiontests/custom_columns_regress/models.py
index c55daf2..728f41f 100644
a
|
b
|
__test__ = {'API_TESTS':"""
|
46 | 46 | >>> a2.save() |
47 | 47 | |
48 | 48 | # Create an article |
49 | | >>> art = Article(headline='Django lets you build web apps easily', primary_author=a) |
| 49 | >>> art = Article(headline='Django lets you build Web apps easily', primary_author=a) |
50 | 50 | >>> art.save() |
51 | 51 | >>> art.authors = [a, a2] |
52 | 52 | |
… |
… |
AttributeError: 'Author' object has no attribute 'last'
|
91 | 91 | |
92 | 92 | # Get the articles for an author |
93 | 93 | >>> a.article_set.all() |
94 | | [<Article: Django lets you build web apps easily>] |
| 94 | [<Article: Django lets you build Web apps easily>] |
95 | 95 | |
96 | 96 | # Query the authors across the m2m relation |
97 | 97 | >>> art.authors.filter(last_name='Jones') |
-
diff --git a/tests/regressiontests/file_storage/tests.py b/tests/regressiontests/file_storage/tests.py
index d59fe9c..901f25e 100644
a
|
b
|
class FileStorageTests(unittest.TestCase):
|
142 | 142 | |
143 | 143 | def test_file_url(self): |
144 | 144 | """ |
145 | | File storage returns a url to access a given file from the web. |
| 145 | File storage returns a url to access a given file from the Web. |
146 | 146 | """ |
147 | 147 | self.assertEqual(self.storage.url('test.file'), |
148 | 148 | '%s%s' % (self.storage.base_url, 'test.file')) |
-
--
diff --git a/django/contrib/gis/gdal/srs.py b/django/contrib/gis/gdal/srs.py
index 93bd841..95e71f1 100644
a
|
b
|
from django.contrib.gis.gdal.prototypes import srs as capi
|
37 | 37 | #### Spatial Reference class. #### |
38 | 38 | class SpatialReference(GDALBase): |
39 | 39 | """ |
40 | | A wrapper for the OGRSpatialReference object. According to the GDAL website, |
| 40 | A wrapper for the OGRSpatialReference object. According to the GDAL Web site, |
41 | 41 | the SpatialReference object "provide[s] services to represent coordinate |
42 | 42 | systems (projections and datums) and to transform between them." |
43 | 43 | """ |
-
diff --git a/django/contrib/sessions/models.py b/django/contrib/sessions/models.py
index c3b72e6..4c76ddf 100644
a
|
b
|
class Session(models.Model):
|
40 | 40 | |
41 | 41 | For complete documentation on using Sessions in your code, consult |
42 | 42 | the sessions documentation that is shipped with Django (also available |
43 | | on the Django website). |
| 43 | on the Django Web site). |
44 | 44 | """ |
45 | 45 | session_key = models.CharField(_('session key'), max_length=40, |
46 | 46 | primary_key=True) |
-
diff --git a/django/core/handlers/base.py b/django/core/handlers/base.py
index b03c2fd..45f8445 100644
a
|
b
|
def get_script_name(environ):
|
208 | 208 | |
209 | 209 | # If Apache's mod_rewrite had a whack at the URL, Apache set either |
210 | 210 | # SCRIPT_URL or REDIRECT_URL to the full resource URL before applying any |
211 | | # rewrites. Unfortunately not every webserver (lighttpd!) passes this |
| 211 | # rewrites. Unfortunately not every Web server (lighttpd!) passes this |
212 | 212 | # information through all the time, so FORCE_SCRIPT_NAME, above, is still |
213 | 213 | # needed. |
214 | 214 | script_url = environ.get('SCRIPT_URL', u'') |
-
diff --git a/django/core/servers/fastcgi.py b/django/core/servers/fastcgi.py
index 607cdb4..da52064 100644
a
|
b
|
Optional Fcgi settings: (setting=value)
|
46 | 46 | |
47 | 47 | Examples: |
48 | 48 | Run a "standard" fastcgi process on a file-descriptor |
49 | | (for webservers which spawn your processes for you) |
| 49 | (for Web servers which spawn your processes for you) |
50 | 50 | $ manage.py runfcgi method=threaded |
51 | 51 | |
52 | 52 | Run a scgi server on a TCP host/port |
-
diff --git a/docs/howto/deployment/fastcgi.txt b/docs/howto/deployment/fastcgi.txt
index c2b8aa8..54611c3 100644
a
|
b
|
to the Web server, which, in turn, passes it back to the client's Web browser.
|
22 | 22 | |
23 | 23 | Like mod_wsgi, FastCGI allows code to stay in memory, allowing requests to be |
24 | 24 | served with no startup time. While mod_wsgi can either be configured embedded |
25 | | in the Apache webserver process or as a separate daemon process, a FastCGI |
| 25 | in the Apache Web server process or as a separate daemon process, a FastCGI |
26 | 26 | process never runs inside the Web server process, always in a separate, |
27 | 27 | persistent process. |
28 | 28 | |
… |
… |
Forcing the URL prefix to a particular value
|
367 | 367 | ============================================ |
368 | 368 | |
369 | 369 | Because many of these fastcgi-based solutions require rewriting the URL at |
370 | | some point inside the webserver, the path information that Django sees may not |
| 370 | some point inside the Web server, the path information that Django sees may not |
371 | 371 | resemble the original URL that was passed in. This is a problem if the Django |
372 | 372 | application is being served from under a particular prefix and you want your |
373 | 373 | URLs from the ``{% url %}`` tag to look like the prefix, rather than the |
374 | 374 | rewritten version, which might contain, for example, ``mysite.fcgi``. |
375 | 375 | |
376 | 376 | Django makes a good attempt to work out what the real script name prefix |
377 | | should be. In particular, if the webserver sets the ``SCRIPT_URL`` (specific |
| 377 | should be. In particular, if the Web server sets the ``SCRIPT_URL`` (specific |
378 | 378 | to Apache's mod_rewrite), or ``REDIRECT_URL`` (set by a few servers, including |
379 | 379 | Apache + mod_rewrite in some situations), Django will work out the original |
380 | 380 | prefix automatically. |
-
diff --git a/docs/howto/deployment/modpython.txt b/docs/howto/deployment/modpython.txt
index a9b665f..9152f0f 100644
a
|
b
|
project (or somewhere else) that contains something like the following:
|
307 | 307 | import os |
308 | 308 | os.environ['PYTHON_EGG_CACHE'] = '/some/directory' |
309 | 309 | |
310 | | Here, ``/some/directory`` is a directory that the Apache webserver process can |
| 310 | Here, ``/some/directory`` is a directory that the Apache Web server process can |
311 | 311 | write to. It will be used as the location for any unpacking of code the eggs |
312 | 312 | need to do. |
313 | 313 | |