mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Fixed #10553 -- Corrected several uses of URLconf
in documentation and comments, according to the Django style guide. Based on patch from rduffield.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@10256 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
3a0950739b
commit
b4f5655c86
10 changed files with 17 additions and 19 deletions
|
@ -58,12 +58,12 @@ be passed through to the mod_python handler in Django, via the ``PythonOption
|
|||
django.root ...`` line. The value set on that line (the last item) should
|
||||
match the string given in the ``<Location ...>`` directive. The effect of this
|
||||
is that Django will automatically strip the ``/mysite`` string from the front
|
||||
of any URLs before matching them against your ``URLConf`` patterns. If you
|
||||
later move your site to live under ``/mysite2``, you will not have to change
|
||||
anything except the ``django.root`` option in the config file.
|
||||
of any URLs before matching them against your URLconf patterns. If you later
|
||||
move your site to live under ``/mysite2``, you will not have to change anything
|
||||
except the ``django.root`` option in the config file.
|
||||
|
||||
When using ``django.root`` you should make sure that what's left, after the
|
||||
prefix has been removed, begins with a slash. Your URLConf patterns that are
|
||||
prefix has been removed, begins with a slash. Your URLconf patterns that are
|
||||
expecting an initial slash will then work correctly. In the above example,
|
||||
since we want to send things like ``/mysite/admin/`` to ``/admin/``, we need
|
||||
to remove the string ``/mysite`` from the beginning, so that is the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue