Changeset 4426
- Timestamp:
- 01/24/07 20:15:39 (2 years ago)
- Files:
-
- django/branches/newforms-admin/django/contrib/sessions/middleware.py (modified) (2 diffs)
- django/branches/newforms-admin/django/core/management.py (modified) (2 diffs)
- django/branches/newforms-admin/django/oldforms/__init__.py (modified) (1 diff)
- django/branches/newforms-admin/docs/add_ons.txt (modified) (8 diffs)
- django/branches/newforms-admin/docs/apache_auth.txt (modified) (1 diff)
- django/branches/newforms-admin/docs/api_stability.txt (modified) (1 diff)
- django/branches/newforms-admin/docs/authentication.txt (modified) (8 diffs)
- django/branches/newforms-admin/docs/cache.txt (modified) (1 diff)
- django/branches/newforms-admin/docs/contributing.txt (modified) (3 diffs)
- django/branches/newforms-admin/docs/design_philosophies.txt (modified) (1 diff)
- django/branches/newforms-admin/docs/django-admin.txt (modified) (5 diffs)
- django/branches/newforms-admin/docs/email.txt (modified) (2 diffs)
- django/branches/newforms-admin/docs/faq.txt (modified) (10 diffs)
- django/branches/newforms-admin/docs/fastcgi.txt (modified) (1 diff)
- django/branches/newforms-admin/docs/flatpages.txt (modified) (3 diffs)
- django/branches/newforms-admin/docs/forms.txt (modified) (2 diffs)
- django/branches/newforms-admin/docs/generic_views.txt (modified) (3 diffs)
- django/branches/newforms-admin/docs/i18n.txt (modified) (7 diffs)
- django/branches/newforms-admin/docs/install.txt (modified) (1 diff)
- django/branches/newforms-admin/docs/legacy_databases.txt (modified) (3 diffs)
- django/branches/newforms-admin/docs/middleware.txt (modified) (4 diffs)
- django/branches/newforms-admin/docs/modpython.txt (modified) (1 diff)
- django/branches/newforms-admin/docs/outputting_csv.txt (modified) (2 diffs)
- django/branches/newforms-admin/docs/outputting_pdf.txt (modified) (1 diff)
- django/branches/newforms-admin/docs/overview.txt (modified) (1 diff)
- django/branches/newforms-admin/docs/redirects.txt (modified) (3 diffs)
- django/branches/newforms-admin/docs/request_response.txt (modified) (2 diffs)
- django/branches/newforms-admin/docs/sessions.txt (modified) (2 diffs)
- django/branches/newforms-admin/docs/settings.txt (modified) (12 diffs)
- django/branches/newforms-admin/docs/sitemaps.txt (modified) (6 diffs)
- django/branches/newforms-admin/docs/sites.txt (modified) (2 diffs)
- django/branches/newforms-admin/docs/static_files.txt (modified) (3 diffs)
- django/branches/newforms-admin/docs/syndication_feeds.txt (modified) (5 diffs)
- django/branches/newforms-admin/docs/templates_python.txt (modified) (6 diffs)
- django/branches/newforms-admin/docs/templates.txt (modified) (2 diffs)
- django/branches/newforms-admin/docs/tutorial01.txt (modified) (4 diffs)
- django/branches/newforms-admin/docs/tutorial02.txt (modified) (4 diffs)
- django/branches/newforms-admin/docs/tutorial03.txt (modified) (4 diffs)
- django/branches/newforms-admin/docs/tutorial04.txt (modified) (3 diffs)
- django/branches/newforms-admin/docs/url_dispatch.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/branches/newforms-admin/django/contrib/sessions/middleware.py
r4265 r4426 1 1 from django.conf import settings 2 2 from django.contrib.sessions.models import Session 3 from django.core.exceptions import SuspiciousOperation 3 4 from django.utils.cache import patch_vary_headers 4 5 import datetime … … 56 57 expire_date__gt=datetime.datetime.now()) 57 58 self._session_cache = s.get_decoded() 58 except Session.DoesNotExist:59 except (Session.DoesNotExist, SuspiciousOperation): 59 60 self._session_cache = {} 60 61 # Set the session_key to None to force creation of a new django/branches/newforms-admin/django/core/management.py
r4343 r4426 26 26 PROJECT_TEMPLATE_DIR = os.path.join(django.__path__[0], 'conf', '%s_template') 27 27 28 INVALID_PROJECT_NAMES = ('django', ' test')28 INVALID_PROJECT_NAMES = ('django', 'site', 'test') 29 29 30 30 # Set up the terminal color scheme. … … 709 709 from random import choice 710 710 if project_name in INVALID_PROJECT_NAMES: 711 sys.stderr.write(style.ERROR("Error: %r isn't a valid project name. Please try another.\n" % project_name))711 sys.stderr.write(style.ERROR("Error: '%r' conflicts with the name of an existing Python module and cannot be used as a project name. Please try another name.\n" % project_name)) 712 712 sys.exit(1) 713 713 _start_helper('project', project_name, directory) django/branches/newforms-admin/django/oldforms/__init__.py
r4400 r4426 959 959 960 960 def html2python(data): 961 return data.upper() # Should always be stored in upper case 961 if data: 962 return data.upper() # Should always be stored in upper case 963 return data 962 964 html2python = staticmethod(html2python) 963 965 django/branches/newforms-admin/docs/add_ons.txt
r4164 r4426 18 18 `Tutorial 2`_. 19 19 20 .. _Tutorial 2: http://www.djangoproject.com/documentation/tutorial2/20 .. _Tutorial 2: ../tutorial2/ 21 21 22 22 auth … … 27 27 See the `authentication documentation`_. 28 28 29 .. _authentication documentation: http://www.djangoproject.com/documentation/authentication/29 .. _authentication documentation: ../authentication/ 30 30 31 31 comments … … 47 47 See the `csrf documentation`_. 48 48 49 .. _csrf documentation: http://www.djangoproject.com/documentation/csrf/49 .. _csrf documentation: ../csrf/ 50 50 51 51 formtools … … 138 138 See the `flatpages documentation`_. 139 139 140 .. _flatpages documentation: http://www.djangoproject.com/documentation/flatpages/140 .. _flatpages documentation: ../flatpages/ 141 141 142 142 markup … … 158 158 See the `redirects documentation`_. 159 159 160 .. _redirects documentation: http://www.djangoproject.com/documentation/redirects/160 .. _redirects documentation: ../redirects/ 161 161 162 162 sites … … 169 169 See the `sites documentation`_. 170 170 171 .. _sites documentation: http://www.djangoproject.com/documentation/sites/171 .. _sites documentation: ../sites/ 172 172 173 173 sitemaps … … 178 178 See the `sitemaps documentation`_. 179 179 180 .. _sitemaps documentation: http://www.djangoproject.com/documentation/sitemaps/180 .. _sitemaps documentation: ../sitemaps/ 181 181 182 182 syndication … … 187 187 See the `syndication documentation`_. 188 188 189 .. _syndication documentation: http://www.djangoproject.com/documentation/syndication/189 .. _syndication documentation: ../syndication/ 190 190 191 191 Other add-ons django/branches/newforms-admin/docs/apache_auth.txt
r3842 r4426 66 66 PythonOption DJANGO_SETTINGS_MODULE mysite.settings 67 67 68 .. _authentication system: http://www.djangoproject.com/documentation/authentication/68 .. _authentication system: ../authentication/ 69 69 .. _Subversion: http://subversion.tigris.org/ 70 70 .. _mod_dav: http://httpd.apache.org/docs/2.0/mod/mod_dav.html 71 .. _custom permissions: http://www.djangoproject.com/documentation/authentication/#custom-permissions71 .. _custom permissions: ../authentication/#custom-permissions django/branches/newforms-admin/docs/api_stability.txt
r3883 r4426 99 99 there will at least be moderate changes. 100 100 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/ django/branches/newforms-admin/docs/authentication.txt
r3961 r4426 145 145 doesn't allow profiles. 146 146 147 .. _Django model: http://www.djangoproject.com/documentation/model_api/148 .. _DEFAULT_FROM_EMAIL: http://www.djangoproject.com/documentation/settings/#default-from-email147 .. _Django model: ../model_api/ 148 .. _DEFAULT_FROM_EMAIL: ../settings/#default-from-email 149 149 150 150 Manager functions … … 272 272 # Do something for anonymous users. 273 273 274 .. _request objects: http://www.djangoproject.com/documentation/request_response/#httprequest-objects275 .. _session documentation: http://www.djangoproject.com/documentation/sessions/274 .. _request objects: ../request_response/#httprequest-objects 275 .. _session documentation: ../sessions/ 276 276 277 277 How to log a user in … … 442 442 {% endblock %} 443 443 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/ 446 446 447 447 Limiting access to logged-in users that pass a test … … 545 545 return object_detail(*args, **kwargs) 546 546 547 .. _generic view: http://www.djangoproject.com/documentation/generic_views/547 .. _generic view: ../generic_views/ 548 548 549 549 Permissions … … 607 607 ``syncdb``. 608 608 609 .. _model Meta attribute: http://www.djangoproject.com/documentation/model_api/#meta-options609 .. _model Meta attribute: ../model_api/#meta-options 610 610 611 611 API reference … … 646 646 For more, see the `RequestContext docs`_. 647 647 648 .. _RequestContext docs: http://www.djangoproject.com/documentation/templates_python/#subclassing-context-requestcontext648 .. _RequestContext docs: ../templates_python/#subclassing-context-requestcontext 649 649 650 650 Users … … 692 692 {% endif %} 693 693 694 .. _template context: http://www.djangoproject.com/documentation/templates_python/694 .. _template context: ../templates_python/ 695 695 696 696 Groups … … 757 757 database. To send messages to anonymous users, use the `session framework`_. 758 758 759 .. _session framework: http://www.djangoproject.com/documentation/sessions/759 .. _session framework: ../sessions/ 760 760 761 761 Other authentication sources django/branches/newforms-admin/docs/cache.txt
r3604 r4426 251 251 See the `middleware documentation`_ for more on middleware. 252 252 253 .. _`middleware documentation`: http://www.djangoproject.com/documentation/middleware/253 .. _`middleware documentation`: ../middleware/ 254 254 255 255 The per-view cache django/branches/newforms-admin/docs/contributing.txt
r4350 r4426 233 233 234 234 .. _Django i18n mailing list: http://groups.google.com/group/django-i18n/ 235 .. _i18n documentation: http://www.djangoproject.com/documentation/i18n/235 .. _i18n documentation: ../i18n/ 236 236 237 237 Coding style … … 358 358 how to write new tests. 359 359 360 .. _Testing Django applications: http://www.djangoproject.com/documentation/testing/360 .. _Testing Django applications: ../testing/ 361 361 362 362 Running the unit tests … … 597 597 .. _list of tickets with patches: http://code.djangoproject.com/query?status=new&status=assigned&status=reopened&has_patch=1&order=priority 598 598 .. _PEP 8: http://www.python.org/peps/pep-0008.html 599 .. _i18n documentation: http://www.djangoproject.com/documentation/i18n/600 599 .. _i18n branch: http://code.djangoproject.com/browser/django/branches/i18n 601 600 .. _`tags/releases`: http://code.djangoproject.com/browser/django/tags/releases django/branches/newforms-admin/docs/design_philosophies.txt
r3438 r4426 187 187 This is the philosophy behind `template inheritance`_. 188 188 189 .. _template inheritance: http://www.djangoproject.com/documentation/templates/#template-inheritance189 .. _template inheritance: ./templates/#template-inheritance 190 190 191 191 Be decoupled from HTML django/branches/newforms-admin/docs/django-admin.txt
r3841 r4426 54 54 your admin's index page. See `Tutorial 2`_ for more information. 55 55 56 .. _Tutorial 2: http://www.djangoproject.com/documentation/tutorial2/56 .. _Tutorial 2: ../tutorial2/ 57 57 58 58 createcachetable [tablename] … … 62 62 backend. See the `cache documentation`_ for more information. 63 63 64 .. _cache documentation: http://www.djangoproject.com/documentation/cache/64 .. _cache documentation: ../cache/ 65 65 66 66 dbshell … … 191 191 documentation. 192 192 193 .. _serving static files: http://www.djangoproject.com/documentation/static_files/193 .. _serving static files: ../static_files/ 194 194 195 195 Turning off auto-reload … … 254 254 tables with any necessary initial records, SQL functions or test data. 255 255 256 Note that the order in which the SQL files are processed is undefined. 257 256 258 sqlreset [appname appname ...] 257 259 -------------------------------------- … … 381 383 django-admin.py syncdb --verbosity=2 382 384 383 Verbosity determines the amount of notification and debug information that 385 Verbosity determines the amount of notification and debug information that 384 386 will be printed to the console. '0' is no output, '1' is normal output, 385 387 and `2` is verbose output. django/branches/newforms-admin/docs/email.txt
r2901 r4426 102 102 This method exists for convenience and readability. 103 103 104 .. _ADMINS setting: http://www.djangoproject.com/documentation/settings/#admins105 .. _EMAIL_SUBJECT_PREFIX setting: http://www.djangoproject.com/documentation/settings/#email-subject-prefix106 .. _SERVER_EMAIL setting: http://www.djangoproject.com/documentation/settings/#server-email104 .. _ADMINS setting: ../settings/#admins 105 .. _EMAIL_SUBJECT_PREFIX setting: ../settings/#email-subject-prefix 106 .. _SERVER_EMAIL setting: ../settings/#server-email 107 107 108 108 mail_managers() function … … 115 115 mail_managers(subject, message, fail_silently=False) 116 116 117 .. _MANAGERS setting: http://www.djangoproject.com/documentation/settings/#managers117 .. _MANAGERS setting: ../settings/#managers 118 118 119 119 Examples django/branches/newforms-admin/docs/faq.txt
r3917 r4426 64 64 application layer. And it ships with a simple-yet-powerful `cache framework`_. 65 65 66 .. _`cache framework`: http://www.djangoproject.com/documentation/cache/66 .. _`cache framework`: ../cache/ 67 67 68 68 Who's behind this? … … 192 192 We've documented our philosophies on the `design philosophies page`_. 193 193 194 .. _design philosophies page: http://www.djangoproject.com/documentation/design_philosophies/194 .. _design philosophies page: ../design_philosophies/ 195 195 196 196 Do you have any of those nifty "screencast" things? … … 278 278 279 279 .. _`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: ../ 283 283 .. _ask questions: http://www.djangoproject.com/community/ 284 284 … … 338 338 339 339 .. _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/ 341 341 .. _server arrangements wiki page: http://code.djangoproject.com/wiki/ServerArrangements 342 342 … … 465 465 Yes. See `Integrating with a legacy database`_. 466 466 467 .. _`Integrating with a legacy database`: http://www.djangoproject.com/documentation/legacy_databases/467 .. _`Integrating with a legacy database`: ../legacy_databases/ 468 468 469 469 If I make changes to a model, how do I update the database? … … 512 512 contain arbitrary SQL, so you can make any sorts of changes you need to make. 513 513 514 .. _SQL initial data file: http://www.djangoproject.com/documentation/model_api/#providing-initial-sql-data514 .. _SQL initial data file: ../model_api/#providing-initial-sql-data 515 515 516 516 Why is Django leaking memory? … … 593 593 documentation. 594 594 595 .. _serving the admin files: http://www.djangoproject.com/documentation/modpython/#serving-the-admin-files595 .. _serving the admin files: ../modpython/#serving-the-admin-files 596 596 597 597 My "list_filter" contains a ManyToManyField, but the filter doesn't display. … … 631 631 `guide to the CSS used in the admin`_ to get you started. 632 632 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/ 634 634 635 635 How do I create users without having to edit password hashes? … … 641 641 You can also use the Python API. See `creating users`_ for full info. 642 642 643 .. _creating users: http://www.djangoproject.com/documentation/authentication/#creating-users643 .. _creating users: ../authentication/#creating-users 644 644 645 645 Contributing code … … 652 652 It's titled `Contributing to Django`_. 653 653 654 .. _Contributing to Django: http://www.djangoproject.com/documentation/contributing/654 .. _Contributing to Django: ../contributing/ 655 655 656 656 I submitted a bug fix in the ticket system several weeks ago. Why are you ignoring my patch? django/branches/newforms-admin/docs/fastcgi.txt
r3759 r4426 18 18 persistent process. 19 19 20 .. _current preferred setup: http://www.djangoproject.com/documentation/modpython/20 .. _current preferred setup: ../modpython/ 21 21 .. _Apache: http://httpd.apache.org/ 22 22 .. _mod_python: http://www.modpython.org/ django/branches/newforms-admin/docs/flatpages.txt
r2813 r4426 30 30 3. Run the command ``manage.py syncdb``. 31 31 32 .. _INSTALLED_APPS: http://www.djangoproject.com/documentation/settings/#installed-apps33 .. _MIDDLEWARE_CLASSES: http://www.djangoproject.com/documentation/settings/#middleware-classes32 .. _INSTALLED_APPS: ../settings/#installed-apps 33 .. _MIDDLEWARE_CLASSES: ../settings/#middleware-classes 34 34 35 35 How it works … … 64 64 For more on middleware, read the `middleware docs`_. 65 65 66 .. _SITE_ID: http://www.djangoproject.com/documentation/settings/#site-id67 .. _RequestContext: http://www.djangoproject.com/documentation/templates_python/#subclassing-context-djangocontext68 .. _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/ 69 69 70 70 How to add, change and delete flatpages … … 85 85 `Django database API`_. 86 86 87 .. _Django model: http://www.djangoproject.com/documentation/model_api/87 .. _Django model: ../model_api/ 88 88 .. _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/ 90 90 91 91 Flatpage templates django/branches/newforms-admin/docs/forms.txt
r4208 r4426 15 15 that document to understand how we're making the switch. 16 16 17 .. _newforms documentation: http://www.djangoproject.com/documentation/newforms/17 .. _newforms documentation: ../newforms/ 18 18 19 19 Introduction … … 666 666 document for more details). 667 667 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/ django/branches/newforms-admin/docs/generic_views.txt
r4400 r4426 72 72 lambda that returns the QuerySet. 73 73 74 .. _database API docs: http://www.djangoproject.com/documentation/db_api/74 .. _database API docs: ../db_api/ 75 75 76 76 "Simple" generic views … … 224 224 ``latest`` will be a list of the latest 10 objects in ``queryset``. 225 225 226 .. _RequestContext docs: http://www.djangoproject.com/documentation/templates_python/#subclassing-context-djangocontext226 .. _RequestContext docs: ../templates_python/#subclassing-context-djangocontext 227 227 228 228 ``django.views.generic.date_based.archive_year`` … … 917 917 about using ``FormWrapper`` objects in templates. 918 918 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/ 921 921 922 922 ``django.views.generic.create_update.update_object`` django/branches/newforms-admin/docs/i18n.txt
r3608 r4426 54 54 from your ``TEMPLATE_CONTEXT_PROCESSORS`` setting. 55 55 56 .. _documentation for USE_I18N: http://www.djangoproject.com/documentation/settings/#use-i18n56 .. _documentation for USE_I18N: ../settings/#use-i18n 57 57 58 58 How to specify translation strings … … 176 176 verbose_name_plural = _('mythings') 177 177 178 .. _Django models: http://www.djangoproject.com/documentation/model_api/178 .. _Django models: ../model_api/ 179 179 180 180 Pluralization … … 275 275 string, so they don't need to be aware of translations. 276 276 277 .. _Django templates: http://www.djangoproject.com/documentation/templates_python/277 .. _Django templates: ../templates_python/ 278 278 279 279 How to create language files … … 395 395 the steps to take. 396 396 397 .. _Submitting and maintaining translations: http://www.djangoproject.com/documentation/contributing/397 .. _Submitting and maintaining translations: ../contributing/ 398 398 399 399 How Django discovers language preference … … 473 473 en-us). 474 474 475 .. _LANGUAGES setting: http://www.djangoproject.com/documentation/settings/#languages475 .. _LANGUAGES setting: ../settings/#languages 476 476 477 477 * If you define a custom ``LANGUAGES`` setting, as explained in the … … 531 531 in ``request.LANGUAGE_CODE``. 532 532 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-objects533 .. _settings file: ../settings/ 534 .. _middleware documentation: ../middleware/ 535 .. _session: ../sessions/ 536 .. _request object: ../request_response/#httprequest-objects 537 537 538 538 The ``set_language`` redirect view … … 600 600 if you're manually configuring your settings.) 601 601 602 .. _settings documentation: http://www.djangoproject.com/documentation/settings/#using-settings-without-the-django-settings-module-environment-variable602 .. _settings documentation: ../settings/#using-settings-without-the-django-settings-module-environment-variable 603 603 604 604 All message file repositories are structured the same way. They are: django/branches/newforms-admin/docs/install.txt
r4293 r4426 39 39 .. _mod_python: http://www.modpython.org/ 40 40 .. _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/ 42 42 .. _server-arrangements wiki page: http://code.djangoproject.com/wiki/ServerArrangements 43 43 django/branches/newforms-admin/docs/legacy_databases.txt
r4243 r4426 10 10 `official tutorial`_. 11 11 12 .. _official tutorial: http://www.djangoproject.com/documentation/tutorial1/12 .. _official tutorial: ../tutorial1/ 13 13 14 14 Give Django your database parameters … … 26 26 * `DATABASE_PORT`_ 27 27 28 .. _settings file: http://www.djangoproject.com/documentation/settings/29 .. _DATABASE_NAME: http://www.djangoproject.com/documentation/settings/#database-name30 .. _DATABASE_ENGINE: http://www.djangoproject.com/documentation/settings/#database-engine31 .. _DATABASE_USER: http://www.djangoproject.com/documentation/settings/#database-user32 .. _DATABASE_PASSWORD: http://www.djangoproject.com/documentation/settings/#database-password33 .. _DATABASE_HOST: http://www.djangoproject.com/documentation/settings/#database-host34 .. _DATABASE_PORT: http://www.djangoproject.com/documentation/settings/#database-port28 .. _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 35 35 36 36 Auto-generate the models … … 53 53 ``INSTALLED_APPS`` setting. 54 54 55 .. _django-admin.py documentation: http://www.djangoproject.com/documentation/django_admin/55 .. _django-admin.py documentation: ../django_admin/ 56 56 57 57 Install the core Django tables django/branches/newforms-admin/docs/middleware.txt
r4282 r4426 48 48 the `cache documentation`_. 49 49 50 .. _`cache documentation`: http://www.djangoproject.com/documentation/cache/#the-per-site-cache50 .. _`cache documentation`: ../cache/#the-per-site-cache 51 51 52 52 django.middleware.common.CommonMiddleware … … 124 124 Enables session support. See the `session documentation`_. 125 125 126 .. _`session documentation`: http://www.djangoproject.com/documentation/sessions/126 .. _`session documentation`: ../sessions/ 127 127 128 128 django.contrib.auth.middleware.AuthenticationMiddleware … … 132 132 every incoming ``HttpRequest`` object. See `Authentication in Web requests`_. 133 133 134 .. _Authentication in Web requests: http://www.djangoproject.com/documentation/authentication/#authentication-in-web-requests134 .. _Authentication in Web requests: ../authentication/#authentication-in-web-requests 135 135 136 136 django.middleware.transaction.TransactionMiddleware … … 148 148 See the `transaction management documentation`_. 149 149 150 .. _`transaction management documentation`: http://www.djangoproject.com/documentation/transactions/150 .. _`transaction management documentation`: ../transactions/ 151 151 152 152 Writing your own middleware django/branches/newforms-admin/docs/modpython.txt
r3939 r4426 21 21 .. _prefork MPM: http://httpd.apache.org/docs/2.2/mod/prefork.html 22 22 .. _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/ 24 24 25 25 Basic configuration django/branches/newforms-admin/docs/outputting_csv.txt
r2809 r4426 25 25 For more information on the CSV library, see the `CSV library docs`_. 26 26 27 .. _Request and response objects: http://www.djangoproject.com/documentation/request_response/27 .. _Request and response objects: ../request_response/ 28 28 .. _CSV library docs: http://www.python.org/doc/current/lib/module-csv.html 29 29 … … 116 116 have single or double quotes in it, you can remove the ``addslashes`` filters. 117 117 118 .. _Django template system: http://www.djangoproject.com/documentation/templates/119 .. _addslashes template filter: http://www.djangoproject.com/documentation/templates/#addslashes118 .. _Django template system: ../templates/ 119 .. _addslashes template filter: ../templates/#addslashes django/branches/newforms-admin/docs/outputting_pdf.txt
r3299 r4426 44 44 `Request and response objects`_. 45 45 46 .. _Request and response objects: http://www.djangoproject.com/documentation/request_response/46 .. _Request and response objects: ../request_response/ 47 47 48 48 Here's a "Hello World" example:: django/branches/newforms-admin/docs/overview.txt
r3654 r4426 12 12 to start a project. 13 13 14 .. _documentation: http://www.djangoproject.com/documentation/14 .. _documentation: ../ 15 15 16 16 Design your model django/branches/newforms-admin/docs/redirects.txt
r4229 r4426 16 16 3. Run the command ``manage.py syncdb``. 17 17 18 .. _INSTALLED_APPS: http://www.djangoproject.com/documentation/settings/#installed-apps19 .. _MIDDLEWARE_CLASSES: http://www.djangoproject.com/documentation/settings/#middleware-classes18 .. _INSTALLED_APPS: ../settings/#installed-apps 19 .. _MIDDLEWARE_CLASSES: ../settings/#middleware-classes 20 20 21 21 How it works … … 47 47 For more on middleware, read the `middleware docs`_. 48 48 49 .. _SITE_ID: http://www.djangoproject.com/documentation/settings/#site-id50 .. _middleware docs: http://www.djangoproject.com/documentation/middleware/49 .. _SITE_ID: ../settings/#site-id 50 .. _middleware docs: ../middleware/ 51 51 52 52 How to add, change and delete redirects … … 67 67 objects via the `Django database API`_. 68 68 69 .. _Django model: http://www.djangoproject.com/documentation/model_api/69 .. _Django model: ../model_api/ 70 70 .. _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/ django/branches/newforms-admin/docs/request_response.txt
r3913 r4426 118 118 `Authentication in Web requests`_. 119 119 120 .. _Authentication in Web requests: http://www.djangoproject.com/documentation/authentication/#authentication-in-web-requests120 .. _Authentication in Web requests: ../authentication/#authentication-in-web-requests 121 121 122 122 ``session`` … … 125 125 support activated. See the `session documentation`_ for full details. 126 126 127 .. _`session documentation`: http://www.djangoproject.com/documentation/sessions/127 .. _`session documentation`: ../sessions/ 128 128 129 129 ``raw_post_data`` django/branches/newforms-admin/docs/sessions.txt
r4268 r4426 28 28 from your ``INSTALLED_APPS``. It'll save you a small bit of overhead. 29 29 30 .. _middleware: http://www.djangoproject.com/documentation/middleware/30 .. _middleware: ../middleware/ 31 31 32 32 Using sessions in views … … 291 291 that is, if any of its dictionary values have been assigned or deleted. 292 292 293 .. _Django settings: http://www.djangoproject.com/documentation/settings/293 .. _Django settings: ../settings/ 294 294 295 295 Technical details django/branches/newforms-admin/docs/settings.txt
r4400 r4426 60 60 django-admin.py runserver --settings=mysite.settings 61 61 62 .. _django-admin.py: http://www.djangoproject.com/documentation/django_admin/62 .. _django-admin.py: ../django_admin/ 63 63 64 64 On the server (mod_python) … … 76 76 Read the `Django mod_python documentation`_ for more information. 77 77 78 .. _Django mod_python documentation: http://www.djangoproject.com/documentation/modpython/78 .. _Django mod_python documentation: ../modpython/ 79 79 80 80 Default settings … … 103 103 For more, see the `diffsettings documentation`_. 104 104 105 .. _diffsettings documentation: http://www.djangoproject.com/documentation/django_admin/#diffsettings105 .. _diffsettings documentation: ../django_admin/#diffsettings 106 106 107 107 Using settings in Python code … … 307 307 See also DATETIME_FORMAT, TIME_FORMAT, YEAR_MONTH_FORMAT and MONTH_DAY_FORMAT. 308 308 309 .. _allowed date format strings: http://www.djangoproject.com/documentation/templates/#now309 .. _allowed date format strings: ../templates/#now 310 310 311 311 DATETIME_FORMAT … … 320 320 See also DATE_FORMAT, DATETIME_FORMAT, TIME_FORMAT, YEAR_MONTH_FORMAT and MONTH_DAY_FORMAT. 321 321 322 .. _allowed date format strings: http://www.djangoproject.com/documentation/templates/#now322 .. _allowed date format strings: ../templates/#now 323 323 324 324 DEBUG … … 434 434 contains a Django application, as c
