Ticket #3333: relative_doc_paths.diff

File relative_doc_paths.diff, 55.8 KB (added by Jacob, 18 years ago)
  • docs/add_ons.txt

     
    1717The automatic Django administrative interface. For more information, see
    1818`Tutorial 2`_.
    1919
    20 .. _Tutorial 2: http://www.djangoproject.com/documentation/tutorial2/
     20.. _Tutorial 2: ../tutorial2/
    2121
    2222auth
    2323====
     
    2626
    2727See the `authentication documentation`_.
    2828
    29 .. _authentication documentation: http://www.djangoproject.com/documentation/authentication/
     29.. _authentication documentation: ../authentication/
    3030
    3131comments
    3232========
     
    4646
    4747See the `csrf documentation`_.
    4848
    49 .. _csrf documentation: http://www.djangoproject.com/documentation/csrf/
     49.. _csrf documentation: ../csrf/
    5050
    5151formtools
    5252=========
     
    137137
    138138See the `flatpages documentation`_.
    139139
    140 .. _flatpages documentation: http://www.djangoproject.com/documentation/flatpages/
     140.. _flatpages documentation: ../flatpages/
    141141
    142142markup
    143143======
     
    157157
    158158See the `redirects documentation`_.
    159159
    160 .. _redirects documentation: http://www.djangoproject.com/documentation/redirects/
     160.. _redirects documentation: ../redirects/
    161161
    162162sites
    163163=====
     
    168168
    169169See the `sites documentation`_.
    170170
    171 .. _sites documentation: http://www.djangoproject.com/documentation/sites/
     171.. _sites documentation: ../sites/
    172172
    173173sitemaps
    174174========
     
    177177
    178178See the `sitemaps documentation`_.
    179179
    180 .. _sitemaps documentation: http://www.djangoproject.com/documentation/sitemaps/
     180.. _sitemaps documentation: ../sitemaps/
    181181
    182182syndication
    183183===========
     
    186186
    187187See the `syndication documentation`_.
    188188
    189 .. _syndication documentation: http://www.djangoproject.com/documentation/syndication/
     189.. _syndication documentation: ../syndication/
    190190
    191191Other add-ons
    192192=============
  • docs/apache_auth.txt

     
    6565    SetEnv DJANGO_SETTINGS_MODULE mysite.settings
    6666    PythonOption DJANGO_SETTINGS_MODULE mysite.settings
    6767
    68 .. _authentication system: http://www.djangoproject.com/documentation/authentication/
     68.. _authentication system: ../authentication/
    6969.. _Subversion: http://subversion.tigris.org/
    7070.. _mod_dav: http://httpd.apache.org/docs/2.0/mod/mod_dav.html
    71 .. _custom permissions: http://www.djangoproject.com/documentation/authentication/#custom-permissions
     71.. _custom permissions: ../authentication/#custom-permissions
  • docs/api_stability.txt

     
    9898     rewrite before Django 1.0. Even if the change isn't quite that drastic,
    9999     there will at least be moderate changes.
    100100     
    101 .. _caching: http://www.djangoproject.com/documentation/cache/
    102 .. _custom template tags and libraries: http://www.djangoproject.com/documentation/templates_python/
    103 .. _database lookup: http://www.djangoproject.com/documentation/db_api/
    104 .. _django-admin utility: http://www.djangoproject.com/documentation/django_admin/
    105 .. _fastcgi integration: http://www.djangoproject.com/documentation/fastcgi/
    106 .. _flatpages: http://www.djangoproject.com/documentation/flatpages/
    107 .. _generic views: http://www.djangoproject.com/documentation/generic_views/
    108 .. _internationalization: http://www.djangoproject.com/documentation/i18n/
    109 .. _legacy database integration: http://www.djangoproject.com/documentation/legacy_databases/
    110 .. _model definition: http://www.djangoproject.com/documentation/model_api/
    111 .. _mod_python integration: http://www.djangoproject.com/documentation/modpython/
    112 .. _redirects: http://www.djangoproject.com/documentation/redirects/
    113 .. _request/response objects: http://www.djangoproject.com/documentation/request_response/
    114 .. _sending email: http://www.djangoproject.com/documentation/email/
    115 .. _sessions: http://www.djangoproject.com/documentation/sessions/
    116 .. _settings: http://www.djangoproject.com/documentation/settings/
    117 .. _syndication: http://www.djangoproject.com/documentation/syndication/
    118 .. _template language: http://www.djangoproject.com/documentation/templates/
    119 .. _transactions: http://www.djangoproject.com/documentation/transactions/
    120 .. _url dispatch: http://www.djangoproject.com/documentation/url_dispatch/
    121 .. _forms and validation: http://www.djangoproject.com/documentation/forms/
    122 .. _serialization: http://www.djangoproject.com/documentation/serialization/
    123 .. _authentication: http://www.djangoproject.com/documentation/authentication/
     101.. _caching: ../cache/
     102.. _custom template tags and libraries: ../templates_python/
     103.. _database lookup: ../db_api/
     104.. _django-admin utility: ../django_admin/
     105.. _fastcgi integration: ../fastcgi/
     106.. _flatpages: ../flatpages/
     107.. _generic views: ../generic_views/
     108.. _internationalization: ../i18n/
     109.. _legacy database integration: ../legacy_databases/
     110.. _model definition: ../model_api/
     111.. _mod_python integration: ../modpython/
     112.. _redirects: ../redirects/
     113.. _request/response objects: ../request_response/
     114.. _sending email: ../email/
     115.. _sessions: ../sessions/
     116.. _settings: ../settings/
     117.. _syndication: ../syndication/
     118.. _template language: ../templates/
     119.. _transactions: ../transactions/
     120.. _url dispatch: ../url_dispatch/
     121.. _forms and validation: ../forms/
     122.. _serialization: ../serialization/
     123.. _authentication: ../authentication/
  • docs/authentication.txt

     
    144144      Raises ``django.contrib.auth.models.SiteProfileNotAvailable`` if the current site
    145145      doesn't allow profiles.
    146146
    147 .. _Django model: http://www.djangoproject.com/documentation/model_api/
    148 .. _DEFAULT_FROM_EMAIL: http://www.djangoproject.com/documentation/settings/#default-from-email
     147.. _Django model: ../model_api/
     148.. _DEFAULT_FROM_EMAIL: ../settings/#default-from-email
    149149
    150150Manager functions
    151151~~~~~~~~~~~~~~~~~
     
    271271    else:
    272272        # Do something for anonymous users.
    273273
    274 .. _request objects: http://www.djangoproject.com/documentation/request_response/#httprequest-objects
    275 .. _session documentation: http://www.djangoproject.com/documentation/sessions/
     274.. _request objects: ../request_response/#httprequest-objects
     275.. _session documentation: ../sessions/
    276276
    277277How to log a user in
    278278--------------------
     
    441441
    442442    {% endblock %}
    443443
    444 .. _forms documentation: http://www.djangoproject.com/documentation/forms/
    445 .. _site framework docs: http://www.djangoproject.com/documentation/sites/
     444.. _forms documentation: ../forms/
     445.. _site framework docs: ../sites/
    446446
    447447Limiting access to logged-in users that pass a test
    448448---------------------------------------------------
     
    544544    def limited_object_detail(*args, **kwargs):
    545545        return object_detail(*args, **kwargs)
    546546
    547 .. _generic view: http://www.djangoproject.com/documentation/generic_views/
     547.. _generic view: ../generic_views/
    548548
    549549Permissions
    550550===========
     
    606606The only thing this does is create those extra permissions when you run
    607607``syncdb``.
    608608
    609 .. _model Meta attribute: http://www.djangoproject.com/documentation/model_api/#meta-options
     609.. _model Meta attribute: ../model_api/#meta-options
    610610
    611611API reference
    612612-------------
     
    645645   setting contains ``"django.core.context_processors.auth"``, which is default.
    646646   For more, see the `RequestContext docs`_.
    647647
    648    .. _RequestContext docs: http://www.djangoproject.com/documentation/templates_python/#subclassing-context-requestcontext
     648   .. _RequestContext docs: ../templates_python/#subclassing-context-requestcontext
    649649
    650650Users
    651651-----
     
    691691        <p>You don't have permission to do anything in the foo app.</p>
    692692    {% endif %}
    693693
    694 .. _template context: http://www.djangoproject.com/documentation/templates_python/
     694.. _template context: ../templates_python/
    695695
    696696Groups
    697697======
     
    756756Finally, note that this messages framework only works with users in the user
    757757database. To send messages to anonymous users, use the `session framework`_.
    758758
    759 .. _session framework: http://www.djangoproject.com/documentation/sessions/
     759.. _session framework: ../sessions/
    760760
    761761Other authentication sources
    762762============================
  • docs/cache.txt

     
    250250
    251251See the `middleware documentation`_ for more on middleware.
    252252
    253 .. _`middleware documentation`: http://www.djangoproject.com/documentation/middleware/
     253.. _`middleware documentation`: ../middleware/
    254254
    255255The per-view cache
    256256==================
  • docs/contributing.txt

     
    186186      `i18n documentation`_.
    187187
    188188.. _Django i18n mailing list: http://groups.google.com/group/django-i18n/
    189 .. _i18n documentation: http://www.djangoproject.com/documentation/i18n/
     189.. _i18n documentation: ../i18n/
    190190
    191191Coding style
    192192============
     
    311311testing applications. See `Testing Django applications`_ for an explanation of
    312312how to write new tests.
    313313
    314 .. _Testing Django applications: http://www.djangoproject.com/documentation/testing/
     314.. _Testing Django applications: ../testing/
    315315
    316316Running the unit tests
    317317----------------------
     
    544544.. _community page: http://www.djangoproject.com/community/
    545545.. _ticket tracker: http://code.djangoproject.com/newticket
    546546.. _django-developers: http://groups.google.com/group/django-developers
    547 .. _FAQ: http://www.djangoproject.com/documentation/faq/
     547.. _FAQ: ../faq/
    548548.. _search the tracker: http://code.djangoproject.com/search
    549549.. _django-users: http://groups.google.com/group/django-users
    550550.. _`#django`: irc://irc.freenode.net/django
    551551.. _list of tickets with patches: http://code.djangoproject.com/report/12
    552552.. _PEP 8: http://www.python.org/peps/pep-0008.html
    553 .. _i18n documentation: http://www.djangoproject.com/documentation/i18n/
     553.. _i18n documentation: ../i18n/
    554554.. _i18n branch: http://code.djangoproject.com/browser/django/branches/i18n
    555555.. _`tags/releases`: http://code.djangoproject.com/browser/django/tags/releases
  • docs/design_philosophies.txt

     
    186186
    187187This is the philosophy behind `template inheritance`_.
    188188
    189 .. _template inheritance: http://www.djangoproject.com/documentation/templates/#template-inheritance
     189.. _template inheritance: ./templates/#template-inheritance
    190190
    191191Be decoupled from HTML
    192192----------------------
  • docs/django-admin.txt

     
    5353Use admin-index template snippets if you want to customize the look and feel of
    5454your admin's index page. See `Tutorial 2`_ for more information.
    5555
    56 .. _Tutorial 2: http://www.djangoproject.com/documentation/tutorial2/
     56.. _Tutorial 2: ../tutorial2/
    5757
    5858createcachetable [tablename]
    5959----------------------------
     
    6161Creates a cache table named ``tablename`` for use with the database cache
    6262backend.  See the `cache documentation`_ for more information.
    6363
    64 .. _cache documentation: http://www.djangoproject.com/documentation/cache/
     64.. _cache documentation: ../cache/
    6565
    6666dbshell
    6767-------
     
    190190you want to configure Django to serve static media, read the `serving static files`_
    191191documentation.
    192192
    193 .. _serving static files: http://www.djangoproject.com/documentation/static_files/
     193.. _serving static files: ../static_files/
    194194
    195195Turning off auto-reload
    196196~~~~~~~~~~~~~~~~~~~~~~~
  • docs/email.txt

     
    101101
    102102This method exists for convenience and readability.
    103103
    104 .. _ADMINS setting: http://www.djangoproject.com/documentation/settings/#admins
    105 .. _EMAIL_SUBJECT_PREFIX setting: http://www.djangoproject.com/documentation/settings/#email-subject-prefix
    106 .. _SERVER_EMAIL setting: http://www.djangoproject.com/documentation/settings/#server-email
     104.. _ADMINS setting: ../settings/#admins
     105.. _EMAIL_SUBJECT_PREFIX setting: ../settings/#email-subject-prefix
     106.. _SERVER_EMAIL setting: ../settings/#server-email
    107107
    108108mail_managers() function
    109109========================
     
    114114
    115115    mail_managers(subject, message, fail_silently=False)
    116116
    117 .. _MANAGERS setting: http://www.djangoproject.com/documentation/settings/#managers
     117.. _MANAGERS setting: ../settings/#managers
    118118
    119119Examples
    120120========
  • docs/faq.txt

     
    6363The framework cleanly separates components such as its database layer and
    6464application layer. And it ships with a simple-yet-powerful `cache framework`_.
    6565
    66 .. _`cache framework`: http://www.djangoproject.com/documentation/cache/
     66.. _`cache framework`: ../cache/
    6767
    6868Who's behind this?
    6969------------------
     
    191191
    192192We've documented our philosophies on the `design philosophies page`_.
    193193
    194 .. _design philosophies page: http://www.djangoproject.com/documentation/design_philosophies/
     194.. _design philosophies page: ../design_philosophies/
    195195
    196196Do you have any of those nifty "screencast" things?
    197197---------------------------------------------------
     
    277277       run into trouble.
    278278
    279279.. _`Download the code`: http://www.djangoproject.com/download/
    280 .. _`installation guide`: http://www.djangoproject.com/documentation/install/
    281 .. _tutorial:  http://www.djangoproject.com/documentation/tutorial1/
    282 .. _documentation: http://www.djangoproject.com/documentation/
     280.. _`installation guide`: ../install/
     281.. _tutorial:  ../tutorial1/
     282.. _documentation: ../
    283283.. _ask questions: http://www.djangoproject.com/community/
    284284
    285285How do I fix the "install a later version of setuptools" error?
     
    337337the development Web server that comes with Django. Things should Just Work.
    338338
    339339.. _WSGI: http://www.python.org/peps/pep-0333.html
    340 .. _How to use Django with FastCGI: http://www.djangoproject.com/documentation/fastcgi/
     340.. _How to use Django with FastCGI: ../fastcgi/
    341341.. _server arrangements wiki page: http://code.djangoproject.com/wiki/ServerArrangements
    342342
    343343How do I install mod_python on Windows?
     
    464464
    465465Yes. See `Integrating with a legacy database`_.
    466466
    467 .. _`Integrating with a legacy database`: http://www.djangoproject.com/documentation/legacy_databases/
     467.. _`Integrating with a legacy database`: ../legacy_databases/
    468468
    469469If I make changes to a model, how do I update the database?
    470470-----------------------------------------------------------
     
    511511As explained in the `SQL initial data file`_ documentation, this SQL file can
    512512contain arbitrary SQL, so you can make any sorts of changes you need to make.
    513513
    514 .. _SQL initial data file: http://www.djangoproject.com/documentation/model_api/#providing-initial-sql-data
     514.. _SQL initial data file: ../model_api/#providing-initial-sql-data
    515515
    516516Why is Django leaking memory?
    517517-----------------------------
     
    592592See `serving the admin files`_ in the "How to use Django with mod_python"
    593593documentation.
    594594
    595 .. _serving the admin files: http://www.djangoproject.com/documentation/modpython/#serving-the-admin-files
     595.. _serving the admin files: ../modpython/#serving-the-admin-files
    596596
    597597My "list_filter" contains a ManyToManyField, but the filter doesn't display.
    598598----------------------------------------------------------------------------
     
    630630like to make should be possible by editing the stylesheet. We've got a
    631631`guide to the CSS used in the admin`_ to get you started.
    632632
    633 .. _`guide to the CSS used in the admin`: http://www.djangoproject.com/documentation/admin_css/
     633.. _`guide to the CSS used in the admin`: ../admin_css/
    634634
    635635How do I create users without having to edit password hashes?
    636636-------------------------------------------------------------
     
    640640
    641641You can also use the Python API. See `creating users`_ for full info.
    642642
    643 .. _creating users: http://www.djangoproject.com/documentation/authentication/#creating-users
     643.. _creating users: ../authentication/#creating-users
    644644
    645645Contributing code
    646646=================
     
    651651Thanks for asking! We've written an entire document devoted to this question.
    652652It's titled `Contributing to Django`_.
    653653
    654 .. _Contributing to Django: http://www.djangoproject.com/documentation/contributing/
     654.. _Contributing to Django: ../contributing/
    655655
    656656I submitted a bug fix in the ticket system several weeks ago. Why are you ignoring my patch?
    657657--------------------------------------------------------------------------------------------
  • docs/fastcgi.txt

     
    1717process doesn't run inside the Web server process, but in a separate,
    1818persistent process.
    1919
    20 .. _current preferred setup: http://www.djangoproject.com/documentation/modpython/
     20.. _current preferred setup: ../modpython/
    2121.. _Apache: http://httpd.apache.org/
    2222.. _mod_python: http://www.modpython.org/
    2323.. _mod_perl: http://perl.apache.org/
  • docs/flatpages.txt

     
    2929       to your MIDDLEWARE_CLASSES_ setting.
    3030    3. Run the command ``manage.py syncdb``.
    3131
    32 .. _INSTALLED_APPS: http://www.djangoproject.com/documentation/settings/#installed-apps
    33 .. _MIDDLEWARE_CLASSES: http://www.djangoproject.com/documentation/settings/#middleware-classes
     32.. _INSTALLED_APPS: ../settings/#installed-apps
     33.. _MIDDLEWARE_CLASSES: ../settings/#middleware-classes
    3434
    3535How it works
    3636============
     
    6363
    6464For more on middleware, read the `middleware docs`_.
    6565
    66 .. _SITE_ID: http://www.djangoproject.com/documentation/settings/#site-id
    67 .. _RequestContext: http://www.djangoproject.com/documentation/templates_python/#subclassing-context-djangocontext
    68 .. _middleware docs: http://www.djangoproject.com/documentation/middleware/
     66.. _SITE_ID: ../settings/#site-id
     67.. _RequestContext: ../templates_python/#subclassing-context-djangocontext
     68.. _middleware docs: ../middleware/
    6969
    7070How to add, change and delete flatpages
    7171=======================================
     
    8484`django/contrib/flatpages/models.py`_. You can access flatpage objects via the
    8585`Django database API`_.
    8686
    87 .. _Django model: http://www.djangoproject.com/documentation/model_api/
     87.. _Django model: ../model_api/
    8888.. _django/contrib/flatpages/models.py: http://code.djangoproject.com/browser/django/trunk/django/contrib/flatpages/models.py
    89 .. _Django database API: http://www.djangoproject.com/documentation/db_api/
     89.. _Django database API: ../db_api/
    9090
    9191Flatpage templates
    9292==================
  • docs/forms.txt

     
    1414If you have legacy form/manipulator code, read the "Migration plan" section in
    1515that document to understand how we're making the switch.
    1616
    17 .. _newforms documentation: http://www.djangoproject.com/documentation/newforms/
     17.. _newforms documentation: ../newforms/
    1818
    1919Introduction
    2020============
     
    665665    the executable specified in the ``JING_PATH`` setting (see the settings_
    666666    document for more details).
    667667
    668 .. _`generic views`: http://www.djangoproject.com/documentation/generic_views/
    669 .. _`models API`: http://www.djangoproject.com/documentation/model_api/
    670 .. _settings: http://www.djangoproject.com/documentation/settings/
     668.. _`generic views`: ../generic_views/
     669.. _`models API`: ../model_api/
     670.. _settings: ../settings/
  • docs/generic_views.txt

     
    7171``extra_context`` that is always fresh you need to wrap it in a function or
    7272lambda that returns the QuerySet.
    7373
    74 .. _database API docs: http://www.djangoproject.com/documentation/db_api/
     74.. _database API docs: ../db_api/
    7575
    7676"Simple" generic views
    7777======================
     
    223223      by ``date_field``. For example, if ``num_latest`` is ``10``, then
    224224      ``latest`` will be a list of the latest 10 objects in ``queryset``.
    225225
    226 .. _RequestContext docs: http://www.djangoproject.com/documentation/templates_python/#subclassing-context-djangocontext
     226.. _RequestContext docs: ../templates_python/#subclassing-context-djangocontext
    227227
    228228``django.views.generic.date_based.archive_year``
    229229------------------------------------------------
     
    916916      See the `manipulator and formfield documentation`_ for more information
    917917      about using ``FormWrapper`` objects in templates.
    918918
    919 .. _authentication system: http://www.djangoproject.com/documentation/authentication/
    920 .. _manipulator and formfield documentation: http://www.djangoproject.com/documentation/forms/
     919.. _authentication system: ../authentication/
     920.. _manipulator and formfield documentation: ../forms/
    921921
    922922``django.views.generic.create_update.update_object``
    923923----------------------------------------------------
  • docs/i18n.txt

     
    5353You'll probably also want to remove ``'django.core.context_processors.i18n'``
    5454from your ``TEMPLATE_CONTEXT_PROCESSORS`` setting.
    5555
    56 .. _documentation for USE_I18N: http://www.djangoproject.com/documentation/settings/#use-i18n
     56.. _documentation for USE_I18N: ../settings/#use-i18n
    5757
    5858How to specify translation strings
    5959==================================
     
    175175            verbose_name = _('my thing')
    176176            verbose_name_plural = _('mythings')
    177177
    178 .. _Django models: http://www.djangoproject.com/documentation/model_api/
     178.. _Django models: ../model_api/
    179179
    180180Pluralization
    181181~~~~~~~~~~~~~
     
    274274In this case, both the tag and the filter will see the already-translated
    275275string, so they don't need to be aware of translations.
    276276
    277 .. _Django templates: http://www.djangoproject.com/documentation/templates_python/
     277.. _Django templates: ../templates_python/
    278278
    279279How to create language files
    280280============================
     
    394394    please let us know! See `Submitting and maintaining translations`_ for
    395395    the steps to take.
    396396
    397     .. _Submitting and maintaining translations: http://www.djangoproject.com/documentation/contributing/
     397    .. _Submitting and maintaining translations: ../contributing/
    398398
    399399How Django discovers language preference
    400400========================================
     
    472472      selection to German and English (and any sublanguage, like de-ch or
    473473      en-us).
    474474
    475       .. _LANGUAGES setting: http://www.djangoproject.com/documentation/settings/#languages
     475      .. _LANGUAGES setting: ../settings/#languages
    476476
    477477    * If you define a custom ``LANGUAGES`` setting, as explained in the
    478478      previous bullet, it's OK to mark the languages as translation strings
     
    530530``settings.LANGUAGE_CODE``, while with dynamic (middleware) translation, it's
    531531in ``request.LANGUAGE_CODE``.
    532532
    533 .. _settings file: http://www.djangoproject.com/documentation/settings/
    534 .. _middleware documentation: http://www.djangoproject.com/documentation/middleware/
    535 .. _session: http://www.djangoproject.com/documentation/sessions/
    536 .. _request object: http://www.djangoproject.com/documentation/request_response/#httprequest-objects
     533.. _settings file: ../settings/
     534.. _middleware documentation: ../middleware/
     535.. _session: ../sessions/
     536.. _request object: ../request_response/#httprequest-objects
    537537
    538538The ``set_language`` redirect view
    539539==================================
     
    599599    of the settings file to determine this, and a settings file doesn't exist
    600600    if you're manually configuring your settings.)
    601601
    602 .. _settings documentation: http://www.djangoproject.com/documentation/settings/#using-settings-without-the-django-settings-module-environment-variable
     602.. _settings documentation: ../settings/#using-settings-without-the-django-settings-module-environment-variable
    603603
    604604All message file repositories are structured the same way. They are:
    605605
  • docs/install.txt

     
    3838.. _Apache: http://httpd.apache.org/
    3939.. _mod_python: http://www.modpython.org/
    4040.. _WSGI: http://www.python.org/peps/pep-0333.html
    41 .. _How to use Django with mod_python: http://www.djangoproject.com/documentation/modpython/
     41.. _How to use Django with mod_python: ../modpython/
    4242.. _server-arrangements wiki page: http://code.djangoproject.com/wiki/ServerArrangements
    4343
    4444Get your database running
  • docs/legacy_databases.txt

     
    99This document assumes you know the Django basics, as covered in the
    1010`official tutorial`_.
    1111
    12 .. _official tutorial: http://www.djangoproject.com/documentation/tutorial1/
     12.. _official tutorial: ../tutorial1/
    1313
    1414Give Django your database parameters
    1515====================================
     
    2525    * `DATABASE_HOST`_
    2626    * `DATABASE_PORT`_
    2727
    28 .. _settings file: http://www.djangoproject.com/documentation/settings/
    29 .. _DATABASE_NAME: http://www.djangoproject.com/documentation/settings/#database-name
    30 .. _DATABASE_ENGINE: http://www.djangoproject.com/documentation/settings/#database-engine
    31 .. _DATABASE_USER: http://www.djangoproject.com/documentation/settings/#database-user
    32 .. _DATABASE_PASSWORD: http://www.djangoproject.com/documentation/settings/#database-password
    33 .. _DATABASE_HOST: http://www.djangoproject.com/documentation/settings/#database-host
    34 .. _DATABASE_PORT: http://www.djangoproject.com/documentation/settings/#database-port
     28.. _settings file: ../settings/
     29.. _DATABASE_NAME: ../settings/#database-name
     30.. _DATABASE_ENGINE: ../settings/#database-engine
     31.. _DATABASE_USER: ../settings/#database-user
     32.. _DATABASE_PASSWORD: ../settings/#database-password
     33.. _DATABASE_HOST: ../settings/#database-host
     34.. _DATABASE_PORT: ../settings/#database-port
    3535
    3636Auto-generate the models
    3737========================
     
    5252the Python package that holds your app. Then add the app to your
    5353``INSTALLED_APPS`` setting.
    5454
    55 .. _django-admin.py documentation: http://www.djangoproject.com/documentation/django_admin/
     55.. _django-admin.py documentation: ../django_admin/
    5656
    5757Install the core Django tables
    5858==============================
  • docs/middleware.txt

     
    4747cached for as long as the ``CACHE_MIDDLEWARE_SECONDS`` setting defines. See
    4848the `cache documentation`_.
    4949
    50 .. _`cache documentation`: http://www.djangoproject.com/documentation/cache/#the-per-site-cache
     50.. _`cache documentation`: ../cache/#the-per-site-cache
    5151
    5252django.middleware.common.CommonMiddleware
    5353-----------------------------------------
     
    123123
    124124Enables session support. See the `session documentation`_.
    125125
    126 .. _`session documentation`: http://www.djangoproject.com/documentation/sessions/
     126.. _`session documentation`: ../sessions/
    127127
    128128django.contrib.auth.middleware.AuthenticationMiddleware
    129129-------------------------------------------------------
     
    131131Adds the ``user`` attribute, representing the currently-logged-in user, to
    132132every incoming ``HttpRequest`` object. See `Authentication in Web requests`_.
    133133
    134 .. _Authentication in Web requests: http://www.djangoproject.com/documentation/authentication/#authentication-in-web-requests
     134.. _Authentication in Web requests: ../authentication/#authentication-in-web-requests
    135135
    136136django.middleware.transaction.TransactionMiddleware
    137137---------------------------------------------------
     
    147147
    148148See the `transaction management documentation`_.
    149149
    150 .. _`transaction management documentation`: http://www.djangoproject.com/documentation/transactions/
     150.. _`transaction management documentation`: ../transactions/
    151151
    152152Writing your own middleware
    153153===========================
  • docs/modpython.txt

     
    2020.. _mod_perl: http://perl.apache.org/
    2121.. _prefork MPM: http://httpd.apache.org/docs/2.2/mod/prefork.html
    2222.. _worker MPM: http://httpd.apache.org/docs/2.2/mod/worker.html
    23 .. _How to use Django with FastCGI: http://www.djangoproject.com/documentation/fastcgi/
     23.. _How to use Django with FastCGI: ../fastcgi/
    2424
    2525Basic configuration
    2626===================
  • docs/outputting_csv.txt

     
    2424
    2525    For more information on the CSV library, see the `CSV library docs`_.
    2626
    27     .. _Request and response objects: http://www.djangoproject.com/documentation/request_response/
     27    .. _Request and response objects: ../request_response/
    2828    .. _CSV library docs: http://www.python.org/doc/current/lib/module-csv.html
    2929
    3030Here's an example::
     
    115115there aren't any problems with quotes. If you can be certain your data doesn't
    116116have single or double quotes in it, you can remove the ``addslashes`` filters.
    117117
    118 .. _Django template system: http://www.djangoproject.com/documentation/templates/
    119 .. _addslashes template filter: http://www.djangoproject.com/documentation/templates/#addslashes
     118.. _Django template system: ../templates/
     119.. _addslashes template filter: ../templates/#addslashes
  • docs/outputting_pdf.txt

     
    4343    For more information on ``HttpResponse`` objects, see
    4444    `Request and response objects`_.
    4545
    46     .. _Request and response objects: http://www.djangoproject.com/documentation/request_response/
     46    .. _Request and response objects: ../request_response/
    4747
    4848Here's a "Hello World" example::
    4949
  • docs/overview.txt

     
    1111reference. Please see our more-detailed Django documentation_ when you're ready
    1212to start a project.
    1313
    14 .. _documentation: http://www.djangoproject.com/documentation/
     14.. _documentation: ../
    1515
    1616Design your model
    1717=================
  • docs/redirects.txt

     
    1515       to your MIDDLEWARE_CLASSES_ setting.
    1616    3. Run the command ``manage.py syncdb``.
    1717
    18 .. _INSTALLED_APPS: http://www.djangoproject.com/documentation/settings/#installed-apps
    19 .. _MIDDLEWARE_CLASSES: http://www.djangoproject.com/documentation/settings/#middleware-classes
     18.. _INSTALLED_APPS: ../settings/#installed-apps
     19.. _MIDDLEWARE_CLASSES: ../settings/#middleware-classes
    2020
    2121How it works
    2222============
     
    4646
    4747For more on middleware, read the `middleware docs`_.
    4848
    49 .. _SITE_ID: http://www.djangoproject.com/documentation/settings/#site-id
    50 .. _middleware docs: http://www.djangoproject.com/documentation/middleware/
     49.. _SITE_ID: ../settings/#site-id
     50.. _middleware docs: ../middleware/
    5151
    5252How to add, change and delete redirects
    5353=======================================
     
    6666`django/contrib/redirects/models.py`_. You can access redirect
    6767objects via the `Django database API`_.
    6868
    69 .. _Django model: http://www.djangoproject.com/documentation/model_api/
     69.. _Django model: ../model_api/
    7070.. _django/contrib/redirects/models.py: http://code.djangoproject.com/browser/django/trunk/django/contrib/redirects/models.py
    71 .. _Django database API: http://www.djangoproject.com/documentation/db_api/
     71.. _Django database API: ../db_api/
  • docs/request_response.txt

     
    117117    ``AuthenticationMiddleware`` activated. For more, see
    118118    `Authentication in Web requests`_.
    119119
    120     .. _Authentication in Web requests: http://www.djangoproject.com/documentation/authentication/#authentication-in-web-requests
     120    .. _Authentication in Web requests: ../authentication/#authentication-in-web-requests
    121121
    122122``session``
    123123    A readable-and-writable, dictionary-like object that represents the current
    124124    session. This is only available if your Django installation has session
    125125    support activated. See the `session documentation`_ for full details.
    126126
    127     .. _`session documentation`: http://www.djangoproject.com/documentation/sessions/
     127    .. _`session documentation`: ../sessions/
    128128
    129129``raw_post_data``
    130130    The raw HTTP POST data. This is only useful for advanced processing. Use
  • docs/sessions.txt

     
    2727``SessionMiddleware`` line from ``MIDDLEWARE_CLASSES`` and ``'django.contrib.sessions'``
    2828from your ``INSTALLED_APPS``. It'll save you a small bit of overhead.
    2929
    30 .. _middleware: http://www.djangoproject.com/documentation/middleware/
     30.. _middleware: ../middleware/
    3131
    3232Using sessions in views
    3333=======================
     
    290290(default), then the session data will only be saved if it has been modified --
    291291that is, if any of its dictionary values have been assigned or deleted.
    292292
    293 .. _Django settings: http://www.djangoproject.com/documentation/settings/
     293.. _Django settings: ../settings/
    294294
    295295Technical details
    296296=================
  • docs/settings.txt

     
    5959
    6060    django-admin.py runserver --settings=mysite.settings
    6161
    62 .. _django-admin.py: http://www.djangoproject.com/documentation/django_admin/
     62.. _django-admin.py: ../django_admin/
    6363
    6464On the server (mod_python)
    6565--------------------------
     
    7575
    7676Read the `Django mod_python documentation`_ for more information.
    7777
    78 .. _Django mod_python documentation: http://www.djangoproject.com/documentation/modpython/
     78.. _Django mod_python documentation: ../modpython/
    7979
    8080Default settings
    8181================
     
    102102
    103103For more, see the `diffsettings documentation`_.
    104104
    105 .. _diffsettings documentation: http://www.djangoproject.com/documentation/django_admin/#diffsettings
     105.. _diffsettings documentation: ../django_admin/#diffsettings
    106106
    107107Using settings in Python code
    108108=============================
     
    306306
    307307See also DATETIME_FORMAT, TIME_FORMAT, YEAR_MONTH_FORMAT and MONTH_DAY_FORMAT.
    308308
    309 .. _allowed date format strings: http://www.djangoproject.com/documentation/templates/#now
     309.. _allowed date format strings: ../templates/#now
    310310
    311311DATETIME_FORMAT
    312312---------------
     
    319319
    320320See also DATE_FORMAT, DATETIME_FORMAT, TIME_FORMAT, YEAR_MONTH_FORMAT and MONTH_DAY_FORMAT.
    321321
    322 .. _allowed date format strings: http://www.djangoproject.com/documentation/templates/#now
     322.. _allowed date format strings: ../templates/#now
    323323
    324324DEBUG
    325325-----
     
    433433installation. Each string should be a full Python path to a Python package that
    434434contains a Django application, as created by `django-admin.py startapp`_.
    435435
    436 .. _django-admin.py startapp: http://www.djangoproject.com/documentation/django_admin/#startapp-appname
     436.. _django-admin.py startapp: ../django_admin/#startapp-appname
    437437
    438438INTERNAL_IPS
    439439------------
     
    464464in standard language format. For example, U.S. English is ``"en-us"``. See the
    465465`internationalization docs`_.
    466466
    467 .. _internationalization docs: http://www.djangoproject.com/documentation/i18n/
     467.. _internationalization docs: ../i18n/
    468468
    469469LANGUAGES
    470470---------
     
    612612A string representing the full Python import path to your root URLconf. For example:
    613613``"mydjangoapps.urls"``. See `How Django processes a request`_.
    614614
    615 .. _How Django processes a request: http://www.djangoproject.com/documentation/url_dispatch/#how-django-processes-a-request
     615.. _How Django processes a request: ../url_dispatch/#how-django-processes-a-request
    616616
    617617SECRET_KEY
    618618----------
     
    704704
    705705See the `site framework docs`_.
    706706
    707 .. _site framework docs: http://www.djangoproject.com/documentation/sites/
     707.. _site framework docs: ../sites/
    708708
    709709TEMPLATE_CONTEXT_PROCESSORS
    710710---------------------------
     
    760760Output, as a string, that the template system should use for invalid (e.g.
    761761misspelled) variables. See `How invalid variables are handled`_.
    762762
    763 .. _How invalid variables are handled: http://www.djangoproject.com/documentation/templates_python/#how-invalid-variables-are-handled
     763.. _How invalid variables are handled: ../templates_python/#how-invalid-variables-are-handled
    764764
    765765TEST_RUNNER
    766766-----------
     
    798798See also DATE_FORMAT, DATETIME_FORMAT, TIME_FORMAT, YEAR_MONTH_FORMAT and
    799799MONTH_DAY_FORMAT.
    800800
    801 .. _allowed date format strings: http://www.djangoproject.com/documentation/templates/#now
     801.. _allowed date format strings: ../templates/#now
    802802
    803803TIME_ZONE
    804804---------
     
    868868See `allowed date format strings`_. See also DATE_FORMAT, DATETIME_FORMAT,
    869869TIME_FORMAT and MONTH_DAY_FORMAT.
    870870
    871 .. _cache docs: http://www.djangoproject.com/documentation/cache/
    872 .. _middleware docs: http://www.djangoproject.com/documentation/middleware/
    873 .. _session docs: http://www.djangoproject.com/documentation/sessions/
     871.. _cache docs: ../cache/
     872.. _middleware docs: ../middleware/
     873.. _session docs: ../sessions/
    874874.. _See available choices: http://www.postgresql.org/docs/8.1/static/datetime-keywords.html#DATETIME-TIMEZONE-SET-TABLE
    875 .. _template documentation: http://www.djangoproject.com/documentation/templates_python/
     875.. _template documentation: ../templates_python/
    876876
    877877Creating your own settings
    878878==========================
  • docs/sitemaps.txt

     
    2323It works much like Django's `syndication framework`_. To create a sitemap, just
    2424write a ``Sitemap`` class and point to it in your URLconf_.
    2525
    26 .. _syndication framework: http://www.djangoproject.com/documentation/syndication/
    27 .. _URLconf: http://www.djangoproject.com/documentation/url_dispatch/
     26.. _syndication framework: ../syndication/
     27.. _URLconf: ../url_dispatch/
    2828
    2929Installation
    3030============
     
    4141reason it needs to go into ``INSTALLED_APPS`` is so that the
    4242``load_template_source`` template loader can find the default templates.)
    4343
    44 .. _INSTALLED_APPS: http://www.djangoproject.com/documentation/settings/#installed-apps
    45 .. _TEMPLATE_LOADERS: http://www.djangoproject.com/documentation/settings/#template-loaders
    46 .. _sites framework: http://www.djangoproject.com/documentation/sites/
     44.. _INSTALLED_APPS: ../settings/#installed-apps
     45.. _TEMPLATE_LOADERS: ../settings/#template-loaders
     46.. _sites framework: ../sites/
    4747
    4848Initialization
    4949==============
     
    6868``NewsSitemap``). It may also map to an *instance* of a ``Sitemap`` class
    6969(e.g., ``BlogSitemap(some_var)``).
    7070
    71 .. _URLconf: http://www.djangoproject.com/documentation/url_dispatch/
     71.. _URLconf: ../url_dispatch/
    7272
    7373Sitemap classes
    7474===============
     
    217217creates an entry in the sitemap. These entries include only the ``location``
    218218attribute -- not ``lastmod``, ``changefreq`` or ``priority``.
    219219
    220 .. _flatpages: http://www.djangoproject.com/documentation/flatpages/
    221 .. _sites documentation: http://www.djangoproject.com/documentation/sites/
     220.. _flatpages: ../flatpages/
     221.. _sites documentation: ../sites/
    222222
    223223``GenericSitemap``
    224224------------------
     
    232232``priority`` and ``changefreq`` keyword arguments to the ``GenericSitemap``
    233233constructor to specify these attributes for all URLs.
    234234
    235 .. _generic views: http://www.djangoproject.com/documentation/generic_views/
     235.. _generic views: ../generic_views/
    236236
    237237Example
    238238-------
     
    261261        (r'^sitemap.xml$', 'django.contrib.sitemaps.views.sitemap', {'sitemaps': sitemaps})
    262262    )
    263263
    264 .. _URLconf: http://www.djangoproject.com/documentation/url_dispatch/
     264.. _URLconf: ../url_dispatch/
    265265
    266266Creating a sitemap index
    267267========================
  • docs/sites.txt

     
    276276ones), put ``objects = models.Manager()`` in your model, before you define
    277277``CurrentSiteManager``.
    278278
    279 .. _manager: http://www.djangoproject.com/documentation/model_api/#managers
    280 .. _manager documentation: http://www.djangoproject.com/documentation/model_api/#managers
     279.. _manager: ../model_api/#managers
     280.. _manager documentation: ../model_api/#managers
    281281
    282282How Django uses the sites framework
    283283===================================
     
    316316    * The shortcut view (``django.views.defaults.shortcut``) uses the domain of
    317317      the current ``Site`` object when calculating an object's URL.
    318318
    319 .. _redirects framework: http://www.djangoproject.com/documentation/redirects/
    320 .. _flatpages framework: http://www.djangoproject.com/documentation/flatpages/
    321 .. _syndication framework: http://www.djangoproject.com/documentation/syndication/
    322 .. _authentication framework: http://www.djangoproject.com/documentation/authentication/
     319.. _redirects framework: ../redirects/
     320.. _flatpages framework: ../flatpages/
     321.. _syndication framework: ../syndication/
     322.. _authentication framework: ../authentication/
  • docs/static_files.txt

     
    2424For information on serving static files in an Apache production environment,
    2525see the `Django mod_python documentation`_.
    2626
    27 .. _Django mod_python documentation: http://www.djangoproject.com/documentation/modpython/#serving-media-files
     27.. _Django mod_python documentation: ../modpython/#serving-media-files
    2828
    2929How to do it
    3030============
     
    4949    * The file ``/path/bar.jpg`` will not be accessible, because it doesn't
    5050      fall under the document root.
    5151
    52 .. _URLconf: http://www.djangoproject.com/documentation/url_dispatch/
     52.. _URLconf: ../url_dispatch/
    5353
    5454Directory listings
    5555==================
     
    122122Of course, the catch here is that you'll have to remember to set ``DEBUG=False``
    123123in your production settings file. But you should be doing that anyway.
    124124
    125 .. _DEBUG setting: http://www.djangoproject.com/documentation/settings/#debug
     125.. _DEBUG setting: ../settings/#debug
  • docs/syndication_feeds.txt

     
    2626
    2727To create a feed, just write a ``Feed`` class and point to it in your URLconf_.
    2828
    29 .. _URLconf: http://www.djangoproject.com/documentation/url_dispatch/
     29.. _URLconf: ../url_dispatch/
    3030
    3131Initialization
    3232--------------
     
    7272
    7373Once that's set up, you just need to define the ``Feed`` classes themselves.
    7474
    75 .. _URLconf: http://www.djangoproject.com/documentation/url_dispatch/
    76 .. _settings file: http://www.djangoproject.com/documentation/settings/
     75.. _URLconf: ../url_dispatch/
     76.. _settings file: ../settings/
    7777
    7878Feed classes
    7979------------
     
    156156             {{ obj.description }}
    157157
    158158.. _chicagocrime.org: http://www.chicagocrime.org/
    159 .. _object-relational mapper: http://www.djangoproject.com/documentation/db_api/
    160 .. _Django templates: http://www.djangoproject.com/documentation/templates/
     159.. _object-relational mapper: ../db_api/
     160.. _Django templates: ../templates/
    161161
    162162A complex example
    163163-----------------
     
    277277appropriate ``<language>`` tag (RSS 2.0) or ``xml:lang`` attribute (Atom). This
    278278comes directly from your `LANGUAGE_CODE setting`_.
    279279
    280 .. _LANGUAGE_CODE setting: http://www.djangoproject.com/documentation/settings/#language-code
     280.. _LANGUAGE_CODE setting: ../settings/#language-code
    281281
    282282URLs
    283283----
     
    292292location. The syndication framework populates this automatically, using the
    293293domain of the current site according to the SITE_ID setting.
    294294
    295 .. _SITE_ID setting: http://www.djangoproject.com/documentation/settings/#site-id
     295.. _SITE_ID setting: ../settings/#site-id
    296296
    297297Publishing Atom and RSS feeds in tandem
    298298---------------------------------------
  • docs/templates.txt

     
    792792
    793793See also: ``{% include %}``.
    794794
    795 .. _ALLOWED_INCLUDE_ROOTS: http://www.djangoproject.com/documentation/settings/#allowed-include-roots
     795.. _ALLOWED_INCLUDE_ROOTS: ../settings/#allowed-include-roots
    796796
    797797templatetag
    798798~~~~~~~~~~~
     
    12181218A set of Django template filters useful for adding a "human touch" to data. See
    12191219the `humanize documentation`_.
    12201220
    1221 .. _humanize documentation: http://www.djangoproject.com/documentation/add_ons/#humanize
     1221.. _humanize documentation: ../add_ons/#humanize
    12221222
    12231223django.contrib.markup
    12241224---------------------
  • docs/templates_python.txt

     
    1111application -- i.e., without the rest of the framework -- make sure to read
    1212the `configuration`_ section later in this document.
    1313
    14 .. _`The Django template language: For template authors`: http://www.djangoproject.com/documentation/templates/
     14.. _`The Django template language: For template authors`: ../templates/
    1515
    1616Basics
    1717======
     
    327327
    328328Here's what each of the default processors does:
    329329
    330 .. _HttpRequest object: http://www.djangoproject.com/documentation/request_response/#httprequest-objects
    331 .. _TEMPLATE_CONTEXT_PROCESSORS setting: http://www.djangoproject.com/documentation/settings/#template-context-processors
     330.. _HttpRequest object: ../request_response/#httprequest-objects
     331.. _TEMPLATE_CONTEXT_PROCESSORS setting: ../settings/#template-context-processors
    332332
    333333django.core.context_processors.auth
    334334~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     
    353353      permissions that the currently logged-in user has. See the `permissions
    354354      docs`_.
    355355
    356 .. _user authentication docs: http://www.djangoproject.com/documentation/authentication/#users
    357 .. _message docs: http://www.djangoproject.com/documentation/authentication/#messages
    358 .. _permissions docs: http://www.djangoproject.com/documentation/authentication/#permissions
     356.. _user authentication docs: ../authentication/#users
     357.. _message docs: ../authentication/#messages
     358.. _permissions docs: ../authentication/#permissions
    359359
    360360django.core.context_processors.debug
    361361~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     
    383383
    384384See the `internationalization docs`_ for more.
    385385
    386 .. _LANGUAGES setting: http://www.djangoproject.com/documentation/settings/#languages
    387 .. _LANGUAGE_CODE setting: http://www.djangoproject.com/documentation/settings/#language-code
    388 .. _internationalization docs: http://www.djangoproject.com/documentation/i18n/
     386.. _LANGUAGES setting: ../settings/#languages
     387.. _LANGUAGE_CODE setting: ../settings/#language-code
     388.. _internationalization docs: ../i18n/
    389389
    390390django.core.context_processors.request
    391391~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     
    944944the tag is passed the context object, as in this example. That's the only
    945945difference between this case and the previous ``inclusion_tag`` example.
    946946
    947 .. _tutorials: http://www.djangoproject.com/documentation/tutorial1/#creating-models
     947.. _tutorials: ../tutorial1/#creating-models
    948948
    949949Setting a variable in the context
    950950~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     
    11151115`settings documentation`_, and any setting starting with *TEMPLATE_*
    11161116is of obvious interest.
    11171117
    1118 .. _settings file: http://www.djangoproject.com/documentation/settings/#using-settings-without-the-django-settings-module-environment-variable
    1119 .. _settings documentation: http://www.djangoproject.com/documentation/settings/
     1118.. _settings file: ../settings/#using-settings-without-the-django-settings-module-environment-variable
     1119.. _settings documentation: ../settings/
  • docs/tutorial01.txt

     
    1717``import django``. If that command runs successfully, with no errors, Django is
    1818installed.
    1919
    20 .. _`Django installed`: http://www.djangoproject.com/documentation/install/
     20.. _`Django installed`: ../install/
    2121
    2222Creating a project
    2323==================
     
    108108
    109109    Full docs for the development server are at `django-admin documentation`_.
    110110
    111 .. _django-admin documentation: http://www.djangoproject.com/documentation/django_admin/
     111.. _django-admin documentation: ../django_admin/
    112112
    113113Database setup
    114114--------------
     
    378378Read the `django-admin.py documentation`_ for full information on what the
    379379``manage.py`` utility can do.
    380380
    381 .. _django-admin.py documentation: http://www.djangoproject.com/documentation/django_admin/
     381.. _django-admin.py documentation: ../django_admin/
    382382
    383383Playing with the API
    384384====================
     
    555555When you're comfortable with the API, read `part 2 of this tutorial`_ to get
    556556Django's automatic admin working.
    557557
    558 .. _Database API reference: http://www.djangoproject.com/documentation/db_api/
    559 .. _part 2 of this tutorial: http://www.djangoproject.com/documentation/tutorial2/
     558.. _Database API reference: ../db_api/
     559.. _part 2 of this tutorial: ../tutorial2/
  • docs/tutorial02.txt

     
    55This tutorial begins where `Tutorial 1`_ left off. We're continuing the Web-poll
    66application and will focus on Django's automatically-generated admin site.
    77
    8 .. _Tutorial 1: http://www.djangoproject.com/documentation/tutorial1/
     8.. _Tutorial 1: ../tutorial1/
    99
    1010.. admonition:: Philosophy
    1111
     
    6464By default, you should see two types of editable content: groups and users.
    6565These are core features Django ships with by default.
    6666
    67 .. _"I can't log in" questions: http://www.djangoproject.com/documentation/faq/#the-admin-site
     67.. _"I can't log in" questions: ../faq/#the-admin-site
    6868
    6969Make the poll app modifiable in the admin
    7070=========================================
     
    402402package, for use as a fallback. See the `loader types documentation`_ for full
    403403information.
    404404
    405 .. _loader types documentation: http://www.djangoproject.com/documentation/templates_python/#loader-types
     405.. _loader types documentation: ../templates_python/#loader-types
    406406
    407407Customize the admin index page
    408408==============================
     
    433433When you're comfortable with the admin site, read `part 3 of this tutorial`_ to
    434434start working on public poll views.
    435435
    436 .. _Django admin CSS guide: http://www.djangoproject.com/documentation/admin_css/
    437 .. _part 3 of this tutorial: http://www.djangoproject.com/documentation/tutorial3/
     436.. _Django admin CSS guide: ../admin_css/
     437.. _part 3 of this tutorial: ../tutorial3/
  • docs/tutorial03.txt

     
    55This tutorial begins where `Tutorial 2`_ left off. We're continuing the Web-poll
    66application and will focus on creating the public interface -- "views."
    77
    8 .. _Tutorial 2: http://www.djangoproject.com/documentation/tutorial2/
     8.. _Tutorial 2: ../tutorial2/
    99
    1010Philosophy
    1111==========
     
    117117
    118118.. _Wikipedia's entry: http://en.wikipedia.org/wiki/Regular_expression
    119119.. _Python documentation: http://www.python.org/doc/current/lib/module-re.html
    120 .. _request and response documentation: http://www.djangoproject.com/documentation/request_response/
    121 .. _URLconf documentation: http://www.djangoproject.com/documentation/url_dispatch/
     120.. _request and response documentation: ../request_response/
     121.. _URLconf documentation: ../url_dispatch/
    122122
    123123Write your first view
    124124=====================
     
    377377
    378378See the `template guide`_ for full details on how templates work.
    379379
    380 .. _template guide: http://www.djangoproject.com/documentation/templates/
     380.. _template guide: ../templates/
    381381
    382382Simplifying the URLconfs
    383383========================
     
    464464When you're comfortable with writing views, read `part 4 of this tutorial`_ to
    465465learn about simple form processing and generic views.
    466466
    467 .. _part 4 of this tutorial: http://www.djangoproject.com/documentation/tutorial4/
     467.. _part 4 of this tutorial: ../tutorial4/
  • docs/tutorial04.txt

     
    120120results page that gets updated each time you vote. If you submit the form
    121121without having chosen a choice, you should see the error message.
    122122
    123 .. _request and response documentation: http://www.djangoproject.com/documentation/request_response/
     123.. _request and response documentation: ../request_response/
    124124
    125125Use generic views: Less code is better
    126126======================================
     
    226226
    227227For full details on generic views, see the `generic views documentation`_.
    228228
    229 .. _generic views documentation: http://www.djangoproject.com/documentation/generic_views/
     229.. _generic views documentation: ../generic_views/
    230230
    231231Coming soon
    232232===========
     
    241241    * Advanced admin features: Permissions
    242242    * Advanced admin features: Custom JavaScript
    243243
    244 .. _Tutorial 3: http://www.djangoproject.com/documentation/tutorial3/
     244.. _Tutorial 3: ../tutorial3/
  • docs/url_dispatch.txt

     
    4545       `request object`_ as its first argument and any values captured in the
    4646       regex as remaining arguments.
    4747
    48 .. _settings file: http://www.djangoproject.com/documentation/settings/
    49 .. _request object: http://www.djangoproject.com/documentation/request_response/#httprequest-objects
     48.. _settings file: ../settings/
     49.. _request object: ../request_response/#httprequest-objects
    5050
    5151Example
    5252=======
     
    286286Note that you don't put a trailing dot (``"."``) in the prefix. Django puts
    287287that in automatically.
    288288
    289 .. _Django overview: http://www.djangoproject.com/documentation/overview/
     289.. _Django overview: ../overview/
    290290
    291291Multiple view prefixes
    292292----------------------
     
    387387This technique is used in `generic views`_ and in the `syndication framework`_
    388388to pass metadata and options to views.
    389389
    390 .. _generic views: http://www.djangoproject.com/documentation/generic_views/
    391 .. _syndication framework: http://www.djangoproject.com/documentation/syndication/
     390.. _generic views: ../generic_views/
     391.. _syndication framework: ../syndication/
    392392
    393393Passing extra options to ``include()``
    394394--------------------------------------
Back to Top