mirror of
https://github.com/django/django.git
synced 2025-08-30 23:37:50 +00:00
Converted links to external topics so they use intersphinx extension markup.
This allows to make these links more resilent to changes in the target URLs. Thanks Jannis for the report and Aymeric Augustin for the patch. Fixes #16586. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16720 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
9110257a32
commit
932b1b8d6d
43 changed files with 283 additions and 377 deletions
|
@ -146,14 +146,14 @@ Alternatively, you can use a symlink called ``django`` that points to the
|
|||
location of the branch's ``django`` package. If you want to switch back, just
|
||||
change the symlink to point to the old code.
|
||||
|
||||
A third option is to use a `path file`_ (``<something>.pth``). First, make sure
|
||||
there are no files, directories or symlinks named ``django`` in your
|
||||
``site-packages`` directory. Then create a text file named ``django.pth`` and
|
||||
save it to your ``site-packages`` directory. That file should contain a path to
|
||||
your copy of Django on a single line and optional comments. Here is an example
|
||||
that points to multiple branches. Just uncomment the line for the branch you
|
||||
want to use ('Trunk' in this example) and make sure all other lines are
|
||||
commented::
|
||||
A third option is to use a path file (``<something>.pth``). This is a feature of
|
||||
the :mod:`site` module. First, make sure there are no files, directories or
|
||||
symlinks named ``django`` in your ``site-packages`` directory. Then create a
|
||||
text file named ``django.pth`` and save it to your ``site-packages`` directory.
|
||||
That file should contain a path to your copy of Django on a single line and
|
||||
optional comments. Here is an example that points to multiple branches. Just
|
||||
uncomment the line for the branch you want to use ('trunk' in this example) and
|
||||
make sure all other lines are commented::
|
||||
|
||||
# Trunk is a svn checkout of:
|
||||
# http://code.djangoproject.com/svn/django/trunk/
|
||||
|
@ -168,5 +168,4 @@ commented::
|
|||
# On windows a path may look like this:
|
||||
# C:/path/to/<branch>
|
||||
|
||||
.. _path file: http://docs.python.org/library/site.html
|
||||
.. _django-developers: http://groups.google.com/group/django-developers
|
||||
|
|
|
@ -10,7 +10,7 @@ Python style
|
|||
* Unless otherwise specified, follow :pep:`8`.
|
||||
|
||||
You could use a tool like `pep8`_ to check for some problems in this
|
||||
area, but remember that PEP 8 is only a guide, so respect the style of
|
||||
area, but remember that :pep:`8` is only a guide, so respect the style of
|
||||
the surrounding code as a primary goal.
|
||||
|
||||
* Use four spaces for indentation.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue