mirror of
https://github.com/django/django.git
synced 2025-07-24 21:54:14 +00:00
git-svn-id: http://code.djangoproject.com/svn/django/trunk@11994 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
66ef91d02a
commit
adb74a8f2e
22 changed files with 59 additions and 63 deletions
|
@ -26,7 +26,6 @@ content in a custom template.
|
|||
|
||||
Here are some examples of flatpages on Django-powered sites:
|
||||
|
||||
* http://www.chicagocrime.org/about/
|
||||
* http://www.everyblock.com/about/
|
||||
* http://www.lawrence.com/about/contact/
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@ those packages have.
|
|||
``'django.contrib.admin'``) to your ``INSTALLED_APPS`` setting and re-run
|
||||
``manage.py syncdb``.
|
||||
|
||||
.. _"batteries included" philosophy: http://docs.python.org/tut/node12.html#batteries-included
|
||||
.. _"batteries included" philosophy: http://docs.python.org/tutorial/stdlib.html#batteries-included
|
||||
|
||||
.. toctree::
|
||||
:maxdepth: 1
|
||||
|
|
|
@ -168,7 +168,7 @@ Austria (``at``)
|
|||
|
||||
.. class:: at.forms.ATStateSelect
|
||||
|
||||
A ``Select`` widget that uses a list of Austrian states as its choices.
|
||||
A ``Select`` widget that uses a list of Austrian states as its choices.
|
||||
|
||||
.. class:: at.forms.ATSocialSecurityNumberField
|
||||
|
||||
|
@ -518,7 +518,7 @@ Romania (``ro``)
|
|||
|
||||
.. class:: ro.forms.ROIBANField
|
||||
|
||||
A form field that validates its input as a Romanian International Bank
|
||||
A form field that validates its input as a Romanian International Bank
|
||||
Account Number (IBAN). The valid format is ROXX-XXXX-XXXX-XXXX-XXXX-XXXX,
|
||||
with or without hyphens.
|
||||
|
||||
|
@ -634,7 +634,7 @@ Sweden (``se``)
|
|||
|
||||
A \+ indicates that the person is older than 100 years, which will be taken
|
||||
into consideration when the date is validated.
|
||||
|
||||
|
||||
The checksum will be calculated and checked. The birth date is checked
|
||||
to be a valid date.
|
||||
|
||||
|
@ -650,7 +650,7 @@ Sweden (``se``)
|
|||
Valid codes consist of five digits (XXXXX). The number can optionally be
|
||||
formatted with a space after the third digit (XXX XX).
|
||||
|
||||
The cleaned value will never contain the space.
|
||||
The cleaned value will never contain the space.
|
||||
|
||||
Switzerland (``ch``)
|
||||
====================
|
||||
|
@ -683,7 +683,7 @@ United Kingdom (``uk``)
|
|||
|
||||
A form field that validates input as a UK postcode. The regular
|
||||
expression used is sourced from the schema for British Standard BS7666
|
||||
address types at http://www.govtalk.gov.uk/gdsc/schemas/bs7666-v2-0.xsd.
|
||||
address types at http://www.cabinetoffice.gov.uk/media/291293/bs7666-v2-0.xml.
|
||||
|
||||
.. class:: uk.forms.UKCountySelect
|
||||
|
||||
|
|
|
@ -940,7 +940,7 @@ attributes. Thus, you can subclass the appropriate feed generator class
|
|||
(``Atom1Feed`` or ``Rss201rev2Feed``) and extend these callbacks. They are:
|
||||
|
||||
.. _georss: http://georss.org/
|
||||
.. _itunes podcast format: http://www.apple.com/itunes/store/podcaststechspecs.html
|
||||
.. _itunes podcast format: http://www.apple.com/itunes/podcasts/specs.html
|
||||
|
||||
``SyndicationFeed.root_attributes(self, )``
|
||||
Return a ``dict`` of attributes to add to the root feed element
|
||||
|
|
|
@ -555,7 +555,7 @@ By default, :class:`FileField` instances are
|
|||
created as ``varchar(100)`` columns in your database. As with other fields, you
|
||||
can change the maximum length using the :attr:`~CharField.max_length` argument.
|
||||
|
||||
.. _`strftime formatting`: http://docs.python.org/lib/module-time.html#l2h-1941
|
||||
.. _`strftime formatting`: http://docs.python.org/library/time.html#time.strftime
|
||||
|
||||
``FilePathField``
|
||||
-----------------
|
||||
|
|
|
@ -94,7 +94,7 @@ the query construction and is not part of the public API. However, it is safe
|
|||
(and fully supported) to pickle and unpickle the attribute's contents as
|
||||
described here.
|
||||
|
||||
.. _pickle: http://docs.python.org/lib/module-pickle.html
|
||||
.. _pickle: http://docs.python.org/library/pickle.html
|
||||
|
||||
.. _queryset-api:
|
||||
|
||||
|
|
|
@ -341,7 +341,7 @@ Supported for the PostgreSQL_ (``postgresql``, ``postgresql_psycopg2``) and
|
|||
MySQL_ (``mysql``) backends.
|
||||
|
||||
.. _PostgreSQL: http://www.postgresql.org/docs/8.2/static/multibyte.html
|
||||
.. _MySQL: http://www.mysql.org/doc/refman/5.0/en/charset-database.html
|
||||
.. _MySQL: http://dev.mysql.com/doc/refman/5.0/en/charset-database.html
|
||||
|
||||
.. setting:: TEST_COLLATION
|
||||
|
||||
|
@ -353,10 +353,9 @@ Default: ``None``
|
|||
The collation order to use when creating the test database. This value is
|
||||
passed directly to the backend, so its format is backend-specific.
|
||||
|
||||
Only supported for the ``mysql`` backend (see `section 10.3.2`_ of the MySQL
|
||||
manual for details).
|
||||
Only supported for the ``mysql`` backend (see the `MySQL manual`_ for details).
|
||||
|
||||
.. _section 10.3.2: http://www.mysql.org/doc/refman/5.0/en/charset-database.html
|
||||
.. _MySQL manual: MySQL_
|
||||
|
||||
.. setting:: TEST_NAME
|
||||
|
||||
|
@ -734,7 +733,7 @@ system's standard umask.
|
|||
get totally incorrect behavior.
|
||||
|
||||
|
||||
.. _documentation for os.chmod: http://docs.python.org/lib/os-file-dir.html
|
||||
.. _documentation for os.chmod: http://docs.python.org/library/os.html#os.chmod
|
||||
|
||||
.. setting:: FIRST_DAY_OF_WEEK
|
||||
|
||||
|
|
|
@ -21,8 +21,8 @@ data. Normally, this means giving it an encoding of UTF-8 or UTF-16. If you use
|
|||
a more restrictive encoding -- for example, latin1 (iso8859-1) -- you won't be
|
||||
able to store certain characters in the database, and information will be lost.
|
||||
|
||||
* MySQL users, refer to the `MySQL manual`_ (section 10.3.2 for MySQL 5.1) for
|
||||
details on how to set or alter the database character set encoding.
|
||||
* MySQL users, refer to the `MySQL manual`_ (section 9.1.3.2 for MySQL 5.1)
|
||||
for details on how to set or alter the database character set encoding.
|
||||
|
||||
* PostgreSQL users, refer to the `PostgreSQL manual`_ (section 21.2.2 in
|
||||
PostgreSQL 8) for details on creating databases with the correct encoding.
|
||||
|
@ -30,7 +30,7 @@ able to store certain characters in the database, and information will be lost.
|
|||
* SQLite users, there is nothing you need to do. SQLite always uses UTF-8
|
||||
for internal encoding.
|
||||
|
||||
.. _MySQL manual: http://www.mysql.org/doc/refman/5.1/en/charset-database.html
|
||||
.. _MySQL manual: http://dev.mysql.com/doc/refman/5.1/en/charset-database.html
|
||||
.. _PostgreSQL manual: http://www.postgresql.org/docs/8.2/static/multibyte.html#AEN24104
|
||||
|
||||
All of Django's database backends automatically convert Unicode strings into
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue