Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
D
django
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
django
Commits
b4fa94ae
Kaydet (Commit)
b4fa94ae
authored
Tem 31, 2018
tarafından
Tim Graham
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Removed code terms from docs/spelling_wordlist.
üst
8edb27b6
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
39 additions
and
133 deletions
+39
-133
deprecation.txt
docs/internals/deprecation.txt
+2
-3
tutorial05.txt
docs/intro/tutorial05.txt
+6
-6
1.0-porting-guide.txt
docs/releases/1.0-porting-guide.txt
+2
-2
1.3.txt
docs/releases/1.3.txt
+9
-9
1.4.txt
docs/releases/1.4.txt
+1
-1
1.5.txt
docs/releases/1.5.txt
+3
-3
1.6.txt
docs/releases/1.6.txt
+3
-3
spelling_wordlist
docs/spelling_wordlist
+0
-94
translation.txt
docs/topics/i18n/translation.txt
+5
-5
migrations.txt
docs/topics/migrations.txt
+4
-3
serialization.txt
docs/topics/serialization.txt
+4
-4
No files found.
docs/internals/deprecation.txt
Dosyayı görüntüle @
b4fa94ae
...
@@ -850,10 +850,9 @@ details on these changes.
...
@@ -850,10 +850,9 @@ details on these changes.
used instead.
used instead.
* The ``django.test.simple.DjangoTestRunner`` will be removed.
* The ``django.test.simple.DjangoTestRunner`` will be removed.
Instead use a
unittest-native class.
The features of the
Instead use a
``unittest``-native class.
The features of the
``django.test.simple.DjangoTestRunner`` (including fail-fast and
``django.test.simple.DjangoTestRunner`` (including fail-fast and
Ctrl-C test termination) can currently be provided by the unittest-native
Ctrl-C test termination) can be provided by :class:`unittest.TextTestRunner`.
:class:`~unittest.TextTestRunner`.
* The undocumented function
* The undocumented function
``django.contrib.formtools.utils.security_hash`` will be removed,
``django.contrib.formtools.utils.security_hash`` will be removed,
...
...
docs/intro/tutorial05.txt
Dosyayı görüntüle @
b4fa94ae
...
@@ -441,12 +441,12 @@ is, earlier than or equal to - ``timezone.now``.
...
@@ -441,12 +441,12 @@ is, earlier than or equal to - ``timezone.now``.
Testing our new view
Testing our new view
--------------------
--------------------
Now you can satisfy yourself that this behaves as expected by firing up
the
Now you can satisfy yourself that this behaves as expected by firing up
runserver, loading the site in your browser, creating ``Questions`` with dates
``runserver``, loading the site in your browser, creating ``Questions`` with
in the past and future, and checking that only those that have been published
dates in the past and future, and checking that only those that have been
are listed. You don't want to have to do that *every single time you make any
published are listed. You don't want to have to do that *every single time you
change that might affect this* - so let's also create a test, based on our
make any change that might affect this* - so let's also create a test, based on
:djadmin:`shell` session above.
our
:djadmin:`shell` session above.
Add the following to ``polls/tests.py``:
Add the following to ``polls/tests.py``:
...
...
docs/releases/1.0-porting-guide.txt
Dosyayı görüntüle @
b4fa94ae
...
@@ -401,8 +401,8 @@ Template tags
...
@@ -401,8 +401,8 @@ Template tags
:ttag:`spaceless` tag
:ttag:`spaceless` tag
~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~
The
spaceless template tag now removes *all* spaces between HTML tags, instead
The
``spaceless`` template tag now removes *all* spaces between HTML tags,
of preserving a single space.
instead
of preserving a single space.
Local flavors
Local flavors
-------------
-------------
...
...
docs/releases/1.3.txt
Dosyayı görüntüle @
b4fa94ae
...
@@ -107,20 +107,20 @@ See the :doc:`reference documentation of the app </ref/contrib/staticfiles>`
...
@@ -107,20 +107,20 @@ See the :doc:`reference documentation of the app </ref/contrib/staticfiles>`
for more details or learn how to :doc:`manage static files
for more details or learn how to :doc:`manage static files
</howto/static-files/index>`.
</howto/static-files/index>`.
unittest2
support
``unittest2``
support
-----------------
-----------------
-----
Python 2.7 introduced some major changes to the ``unittest`` library,
Python 2.7 introduced some major changes to the ``unittest`` library,
adding some extremely useful features. To ensure that every Django
adding some extremely useful features. To ensure that every Django
project can benefit from these new features, Django ships with a copy
project can benefit from these new features, Django ships with a copy
of unittest2_, a copy of the Python 2.7
unittest
library, backported
of unittest2_, a copy of the Python 2.7
``unittest``
library, backported
for Python 2.4 compatibility.
for Python 2.4 compatibility.
To access this library, Django provides the ``django.utils.unittest``
To access this library, Django provides the ``django.utils.unittest``
module alias. If you are using Python 2.7, or you have installed
module alias. If you are using Python 2.7, or you have installed
``unittest2`` locally, Django will map the alias to the installed
``unittest2`` locally, Django will map the alias to the installed
version of the
unittest
library. Otherwise, Django will use its own
version of the
``unittest``
library. Otherwise, Django will use its own
bundled version of
unittest2
.
bundled version of
``unittest2``
.
To take advantage of this alias, simply use::
To take advantage of this alias, simply use::
...
@@ -130,8 +130,8 @@ wherever you would have historically used::
...
@@ -130,8 +130,8 @@ wherever you would have historically used::
import unittest
import unittest
If you want to continue to use the base
unittest
library, you can --
If you want to continue to use the base
``unittest``
library, you can --
you just won't get any of the nice new
unittest2
features.
you just won't get any of the nice new
``unittest2``
features.
.. _unittest2: https://pypi.org/project/unittest2/
.. _unittest2: https://pypi.org/project/unittest2/
...
@@ -313,7 +313,7 @@ requests. These include:
...
@@ -313,7 +313,7 @@ requests. These include:
:class:`~django.template.RequestContext` by default.
:class:`~django.template.RequestContext` by default.
* Support for combining :class:`F expressions <django.db.models.F>`
* Support for combining :class:`F expressions <django.db.models.F>`
with
timedelta
values when retrieving or updating database values.
with
``timedelta``
values when retrieving or updating database values.
.. _HTTPOnly: https://www.owasp.org/index.php/HTTPOnly
.. _HTTPOnly: https://www.owasp.org/index.php/HTTPOnly
...
@@ -712,7 +712,7 @@ list, even if it has only a single element or no elements.
...
@@ -712,7 +712,7 @@ list, even if it has only a single element or no elements.
``DjangoTestRunner``
``DjangoTestRunner``
--------------------
--------------------
As a result of the introduction of support for
unittest2
, the features
As a result of the introduction of support for
``unittest2``
, the features
of ``django.test.simple.DjangoTestRunner`` (including fail-fast
of ``django.test.simple.DjangoTestRunner`` (including fail-fast
and Ctrl-C test termination) have been made redundant. In view of this
and Ctrl-C test termination) have been made redundant. In view of this
redundancy, ``DjangoTestRunner`` has been turned into an empty placeholder
redundancy, ``DjangoTestRunner`` has been turned into an empty placeholder
...
...
docs/releases/1.4.txt
Dosyayı görüntüle @
b4fa94ae
...
@@ -213,7 +213,7 @@ can be used for :doc:`deploying with WSGI app
...
@@ -213,7 +213,7 @@ can be used for :doc:`deploying with WSGI app
servers</howto/deployment/wsgi/index>`.
servers</howto/deployment/wsgi/index>`.
The :djadmin:`built-in development server<runserver>` now supports using an
The :djadmin:`built-in development server<runserver>` now supports using an
externally-defined WSGI callable, which makes it possible to run
runserver
externally-defined WSGI callable, which makes it possible to run
``runserver``
with the same WSGI configuration that is used for deployment. The new
with the same WSGI configuration that is used for deployment. The new
:setting:`WSGI_APPLICATION` setting lets you configure which WSGI callable
:setting:`WSGI_APPLICATION` setting lets you configure which WSGI callable
:djadmin:`runserver` uses.
:djadmin:`runserver` uses.
...
...
docs/releases/1.5.txt
Dosyayı görüntüle @
b4fa94ae
...
@@ -260,8 +260,8 @@ Django 1.5 also includes several smaller improvements worth noting:
...
@@ -260,8 +260,8 @@ Django 1.5 also includes several smaller improvements worth noting:
``self.stderr.write('error')`` (see the note on
``self.stderr.write('error')`` (see the note on
:ref:`management commands output <management-commands-output>`).
:ref:`management commands output <management-commands-output>`).
* The
dumpdata management command outputs one row at a time, preventing
* The
:djadmin:`dumpdata` management command outputs one row at a time,
out-of-memory errors when dumping large datasets.
preventing
out-of-memory errors when dumping large datasets.
* In the localflavor for Canada, "pq" was added to the acceptable codes for
* In the localflavor for Canada, "pq" was added to the acceptable codes for
Quebec. It's an old abbreviation.
Quebec. It's an old abbreviation.
...
@@ -602,7 +602,7 @@ Ordering of tests
...
@@ -602,7 +602,7 @@ Ordering of tests
In order to make sure all ``TestCase`` code starts with a clean database,
In order to make sure all ``TestCase`` code starts with a clean database,
tests are now executed in the following order:
tests are now executed in the following order:
* First, all unittests (including :class:`unittest.TestCase`,
* First, all unit
tests (including :class:`unittest.TestCase`,
:class:`~django.test.SimpleTestCase`, :class:`~django.test.TestCase` and
:class:`~django.test.SimpleTestCase`, :class:`~django.test.TestCase` and
:class:`~django.test.TransactionTestCase`) are run with no particular ordering
:class:`~django.test.TransactionTestCase`) are run with no particular ordering
guaranteed nor enforced among them.
guaranteed nor enforced among them.
...
...
docs/releases/1.6.txt
Dosyayı görüntüle @
b4fa94ae
...
@@ -415,8 +415,8 @@ be removed.
...
@@ -415,8 +415,8 @@ be removed.
New test runner
New test runner
---------------
---------------
In order to maintain greater consistency with Python's
unittest module, the new
In order to maintain greater consistency with Python's
``unittest`` module, the
test runner (``django.test.runner.DiscoverRunner``) does not automatically
new
test runner (``django.test.runner.DiscoverRunner``) does not automatically
support some types of tests that were supported by the previous runner:
support some types of tests that were supported by the previous runner:
* Tests in ``models.py`` and ``tests/__init__.py`` files will no longer be
* Tests in ``models.py`` and ``tests/__init__.py`` files will no longer be
...
@@ -430,7 +430,7 @@ Django bundles a modified version of the :mod:`doctest` module from the Python
...
@@ -430,7 +430,7 @@ Django bundles a modified version of the :mod:`doctest` module from the Python
standard library (in ``django.test._doctest``) and includes some additional
standard library (in ``django.test._doctest``) and includes some additional
doctest utilities. These utilities are deprecated and will be removed in Django
doctest utilities. These utilities are deprecated and will be removed in Django
1.8; doctest suites should be updated to work with the standard library's
1.8; doctest suites should be updated to work with the standard library's
doctest module (or converted to
unittest
-compatible tests).
doctest module (or converted to
``unittest``
-compatible tests).
If you wish to delay updates to your test suite, you can set your
If you wish to delay updates to your test suite, you can set your
:setting:`TEST_RUNNER` setting to ``django.test.simple.DjangoTestSuiteRunner``
:setting:`TEST_RUNNER` setting to ``django.test.simple.DjangoTestSuiteRunner``
...
...
docs/spelling_wordlist
Dosyayı görüntüle @
b4fa94ae
...
@@ -2,7 +2,6 @@
...
@@ -2,7 +2,6 @@
accessor
accessor
accessors
accessors
Aceh
Aceh
addslashes
admin
admin
admindocs
admindocs
admins
admins
...
@@ -52,8 +51,6 @@ backports
...
@@ -52,8 +51,6 @@ backports
backtraces
backtraces
balancer
balancer
basename
basename
bbcontains
bboverlaps
Bcc
Bcc
BCC'ed
BCC'ed
bcrypt
bcrypt
...
@@ -66,7 +63,6 @@ Biggs
...
@@ -66,7 +63,6 @@ Biggs
bitwise
bitwise
Bjørn
Bjørn
blazingly
blazingly
blocktrans
blog
blog
blogs
blogs
boilerplatish
boilerplatish
...
@@ -91,12 +87,10 @@ bytestrings
...
@@ -91,12 +87,10 @@ bytestrings
cacheable
cacheable
callables
callables
camelCase
camelCase
capfirst
cardinality
cardinality
centric
centric
centroid
centroid
changelist
changelist
changepassword
changeset
changeset
charset
charset
checkbox
checkbox
...
@@ -105,7 +99,6 @@ checkin
...
@@ -105,7 +99,6 @@ checkin
checksum
checksum
checksums
checksums
clearable
clearable
clearsessions
clickable
clickable
clickjacking
clickjacking
cms
cms
...
@@ -114,22 +107,15 @@ codec
...
@@ -114,22 +107,15 @@ codec
codename
codename
codenamed
codenamed
coercible
coercible
collectstatic
commenters
commenters
committer
committer
committers
committers
compilemessages
concat
concat
conf
conf
config
config
ContentType
contenttypes
contenttypes
contrib
contrib
covariance
covariance
coveredby
createcachetable
createdb
createsuperuser
criticals
criticals
cron
cron
crontab
crontab
...
@@ -154,8 +140,6 @@ dataset
...
@@ -154,8 +140,6 @@ dataset
datasets
datasets
datatype
datatype
datetimes
datetimes
dbshell
de
Debian
Debian
declaratively
declaratively
deconstruct
deconstruct
...
@@ -177,19 +161,14 @@ dev
...
@@ -177,19 +161,14 @@ dev
dict
dict
dictConfig
dictConfig
dicts
dicts
dictsort
dictsortreversed
diff
diff
diffsettings
Dimensionally
Dimensionally
dimensioned
dimensioned
dirmod
dirmod
discoverable
discoverable
Disqus
Disqus
distro
distro
divisibleby
Django
Django
djangojs
djangoproject
djangoproject
Django's
Django's
dm
dm
...
@@ -205,17 +184,13 @@ drilldown
...
@@ -205,17 +184,13 @@ drilldown
dropdown
dropdown
dropdowns
dropdowns
drupal
drupal
dumpdata
Dunck
Dunck
dwithin
editability
editability
elidable
elidable
encodings
encodings
Endian
Endian
endswith
Enero
Enero
environ
environ
escapejs
esque
esque
Ess
Ess
ETag
ETag
...
@@ -223,7 +198,6 @@ ETags
...
@@ -223,7 +198,6 @@ ETags
exe
exe
extensibility
extensibility
Facebook
Facebook
facto
fallback
fallback
fallbacks
fallbacks
faq
faq
...
@@ -233,17 +207,13 @@ fieldset
...
@@ -233,17 +207,13 @@ fieldset
fieldsets
fieldsets
filename
filename
filenames
filenames
filesizeformat
filesystem
filesystem
filesystems
filesystems
findstatic
Firesheep
Firesheep
firstof
fk
fk
flatpage
flatpage
flatpages
flatpages
Flatpages
Flatpages
floatformat
followup
followup
fooapp
fooapp
formatters
formatters
...
@@ -303,12 +273,8 @@ html
...
@@ -303,12 +273,8 @@ html
http
http
https
https
hyperlinks
hyperlinks
icontains
ie
ie
iendswith
ies
ies
iexact
ifchanged
iframe
iframe
inbox
inbox
incrementing
incrementing
...
@@ -319,31 +285,22 @@ ini
...
@@ -319,31 +285,22 @@ ini
init
init
inline
inline
inlines
inlines
inspectdb
Instagram
Instagram
instantiation
instantiation
intcomma
interdependencies
interdependencies
internet
internet
interoperability
interoperability
intranet
intranet
intword
ip
ip
ipsum
ipsum
IPv
IPv
IPython
IPython
irc
irc
iregex
iriencode
ise
ise
isempty
isnull
iso
iso
istartswith
iterable
iterable
iterables
iterables
iteratively
iteratively
itunes
iTunes
iTunes
ize
ize
JavaScript
JavaScript
...
@@ -362,19 +319,13 @@ Kyngesburye
...
@@ -362,19 +319,13 @@ Kyngesburye
latin
latin
lawrence
lawrence
lexer
lexer
lhs
lifecycle
lifecycle
lifecycles
lifecycles
linearize
linearize
linebreaks
linebreaksbr
linenumbers
linestring
linestring
linework
linework
linter
linter
Livni
Livni
ljust
loaddata
localflavor
localflavor
localhost
localhost
localizable
localizable
...
@@ -395,8 +346,6 @@ lte
...
@@ -395,8 +346,6 @@ lte
Luhn
Luhn
macOS
macOS
Magee
Magee
makemessages
makemigrations
Mako
Mako
manouche
manouche
Marczewski
Marczewski
...
@@ -452,8 +401,6 @@ namespaces
...
@@ -452,8 +401,6 @@ namespaces
namespacing
namespacing
Nanggroe
Nanggroe
natively
natively
naturalday
naturaltime
nd
nd
needsinfo
needsinfo
německy
německy
...
@@ -467,7 +414,6 @@ OAuth
...
@@ -467,7 +414,6 @@ OAuth
offline
offline
OGC
OGC
OGR
OGR
ogrinspect
oldforms
oldforms
online
online
ons
ons
...
@@ -542,7 +488,6 @@ preprocessed
...
@@ -542,7 +488,6 @@ preprocessed
preprocesses
preprocesses
preprocessing
preprocessing
programmatically
programmatically
projectname
proxied
proxied
proxying
proxying
pseudocode
pseudocode
...
@@ -599,7 +544,6 @@ reinstall
...
@@ -599,7 +544,6 @@ reinstall
releaser
releaser
releasers
releasers
reloader
reloader
removetags
renderer
renderer
renderers
renderers
repo
repo
...
@@ -612,14 +556,10 @@ reStructuredText
...
@@ -612,14 +556,10 @@ reStructuredText
reusability
reusability
revalidate
revalidate
reverter
reverter
rhs
rjust
roadmap
roadmap
Roald
Roald
rss
rss
runserver
runtime
runtime
safeseq
Sandvik
Sandvik
savepoint
savepoint
savepoints
savepoints
...
@@ -630,22 +570,18 @@ screencast
...
@@ -630,22 +570,18 @@ screencast
screencasts
screencasts
screenshot
screenshot
screenshots
screenshots
sdist
semimajor
semimajor
semiminor
semiminor
sendtestemail
serializability
serializability
serializable
serializable
serializer
serializer
serializers
serializers
servlet
sessionid
sessionid
setuptools
setuptools
sha
sha
shapefile
shapefile
shapefiles
shapefiles
sharding
sharding
showmigrations
sid
sid
simultaneously
simultaneously
sitemap
sitemap
...
@@ -654,27 +590,18 @@ sitewide
...
@@ -654,27 +590,18 @@ sitewide
slashdot
slashdot
sliceable
sliceable
slippy
slippy
slugify
SMTP
SMTP
solaris
solaris
Solr
Solr
sortable
sortable
spaceless
spam
spam
spammers
spammers
spatialite
spatialite
Springmeyer
Springmeyer
SQL
SQL
sqlflush
sqlmigrate
sqlsequencereset
squashmigrations
ssi
ssi
SSL
SSL
stacktrace
stacktrace
startapp
startproject
startswith
startup
startup
stateful
stateful
staticfile
staticfile
...
@@ -683,8 +610,6 @@ stderr
...
@@ -683,8 +610,6 @@ stderr
stdlib
stdlib
stdout
stdout
storages
storages
stringformat
striptags
stylesheet
stylesheet
stylesheets
stylesheets
subclass
subclass
...
@@ -708,7 +633,6 @@ subprocesses
...
@@ -708,7 +633,6 @@ subprocesses
subqueries
subqueries
subquery
subquery
subselect
subselect
substr
substring
substring
subtemplate
subtemplate
subtemplates
subtemplates
...
@@ -736,22 +660,18 @@ tarballs
...
@@ -736,22 +660,18 @@ tarballs
teardown
teardown
templating
templating
testcase
testcase
testserver
textarea
textarea
th
th
that'll
that'll
Thejaswi
Thejaswi
This'll
This'll
timedelta
timeframe
timeframe
timeline
timeline
timelines
timelines
timesaving
timesaving
timesince
timestamp
timestamp
timestamped
timestamped
timestamps
timestamps
timeuntil
timezones
timezones
titlecase
titlecase
tmp
tmp
...
@@ -770,8 +690,6 @@ triagers
...
@@ -770,8 +690,6 @@ triagers
triaging
triaging
trigram
trigram
trigrams
trigrams
truncatechars
truncatewords
tuple
tuple
tuples
tuples
tv
tv
...
@@ -802,11 +720,8 @@ unhashable
...
@@ -802,11 +720,8 @@ unhashable
unicode
unicode
uninstall
uninstall
uninstalling
uninstalling
uninstalls
unioning
unioning
uniterated
uniterated
unittest
unittests
unlocalize
unlocalize
unlocalized
unlocalized
unmaintained
unmaintained
...
@@ -831,11 +746,7 @@ untrusted
...
@@ -831,11 +746,7 @@ untrusted
unvalidated
unvalidated
uppercased
uppercased
url
url
urlencode
urlize
urlizetrunc
urljoins
urljoins
urllib
urlpatterns
urlpatterns
urls
urls
useable
useable
...
@@ -863,21 +774,17 @@ virtualenv
...
@@ -863,21 +774,17 @@ virtualenv
virtualenvs
virtualenvs
virtualized
virtualized
Weblog
Weblog
whatsnext
whitelist
whitelist
whitelisted
whitelisted
whitespace
whitespace
whitespaces
whitespaces
whizbang
whizbang
widthratio
wiki
wiki
wikipedia
wikipedia
wildcard
wildcard
wildcards
wildcards
Willison
Willison
wontfix
wontfix
wordcount
wordwrap
workflow
workflow
worksforme
worksforme
wrappable
wrappable
...
@@ -887,5 +794,4 @@ xe
...
@@ -887,5 +794,4 @@ xe
xgettext
xgettext
XSS
XSS
xxxxx
xxxxx
yesno
Zope
Zope
docs/topics/i18n/translation.txt
Dosyayı görüntüle @
b4fa94ae
...
@@ -663,7 +663,7 @@ You can use multiple expressions inside a single ``blocktrans`` tag::
...
@@ -663,7 +663,7 @@ You can use multiple expressions inside a single ``blocktrans`` tag::
Other block tags (for example ``{% for %}`` or ``{% if %}``) are not allowed
Other block tags (for example ``{% for %}`` or ``{% if %}``) are not allowed
inside a ``blocktrans`` tag.
inside a ``blocktrans`` tag.
If resolving one of the block arguments fails,
blocktrans
will fall back to
If resolving one of the block arguments fails,
``blocktrans``
will fall back to
the default language by deactivating the currently active language
the default language by deactivating the currently active language
temporarily with the :func:`~django.utils.translation.deactivate_all`
temporarily with the :func:`~django.utils.translation.deactivate_all`
function.
function.
...
@@ -1525,7 +1525,7 @@ multiple times::
...
@@ -1525,7 +1525,7 @@ multiple times::
When :ref:`creating message files from JavaScript source code
When :ref:`creating message files from JavaScript source code
<creating-message-files-from-js-code>` you need to use the special
<creating-message-files-from-js-code>` you need to use the special
'djangojs'
domain, **not** ``-e js``.
``djangojs``
domain, **not** ``-e js``.
.. admonition:: Using Jinja2 templates?
.. admonition:: Using Jinja2 templates?
...
@@ -1876,7 +1876,7 @@ For example::
...
@@ -1876,7 +1876,7 @@ For example::
translation.activate(cur_language)
translation.activate(cur_language)
return text
return text
Calling this function with the value
'de'
will give you ``"Willkommen"``,
Calling this function with the value
``'de'``
will give you ``"Willkommen"``,
regardless of :setting:`LANGUAGE_CODE` and language set by middleware.
regardless of :setting:`LANGUAGE_CODE` and language set by middleware.
Functions of particular interest are
Functions of particular interest are
...
@@ -2023,8 +2023,8 @@ Notes:
...
@@ -2023,8 +2023,8 @@ Notes:
]
]
This example restricts languages that are available for automatic
This example restricts languages that are available for automatic
selection to German and English (and any sublanguage, like
de-ch
or
selection to German and English (and any sublanguage, like
``de-ch``
or
en-us
).
``en-us``
).
* If you define a custom :setting:`LANGUAGES` setting, as explained in the
* If you define a custom :setting:`LANGUAGES` setting, as explained in the
previous bullet, you can mark the language names as translation strings
previous bullet, you can mark the language names as translation strings
...
...
docs/topics/migrations.txt
Dosyayı görüntüle @
b4fa94ae
...
@@ -627,9 +627,10 @@ or with a ``CircularDependencyError``, in which case you can manually resolve it
...
@@ -627,9 +627,10 @@ or with a ``CircularDependencyError``, in which case you can manually resolve it
To manually resolve a ``CircularDependencyError``, break out one of
To manually resolve a ``CircularDependencyError``, break out one of
the ForeignKeys in the circular dependency loop into a separate
the ForeignKeys in the circular dependency loop into a separate
migration, and move the dependency on the other app with it. If you're unsure,
migration, and move the dependency on the other app with it. If you're unsure,
see how makemigrations deals with the problem when asked to create brand
see how :djadmin:`makemigrations` deals with the problem when asked to create
new migrations from your models. In a future release of Django, squashmigrations
brand new migrations from your models. In a future release of Django,
will be updated to attempt to resolve these errors itself.
:djadmin:`squashmigrations` will be updated to attempt to resolve these errors
itself.
Once you've squashed your migration, you should then commit it alongside the
Once you've squashed your migration, you should then commit it alongside the
migrations it replaces and distribute this change to all running instances
migrations it replaces and distribute this change to all running instances
...
...
docs/topics/serialization.txt
Dosyayı görüntüle @
b4fa94ae
...
@@ -180,7 +180,7 @@ The basic XML serialization format is quite simple::
...
@@ -180,7 +180,7 @@ The basic XML serialization format is quite simple::
</object>
</object>
</django-objects>
</django-objects>
The whole collection of objects that is either serialized or de
-
serialized is
The whole collection of objects that is either serialized or deserialized is
represented by a ``<django-objects>``-tag which contains multiple
represented by a ``<django-objects>``-tag which contains multiple
``<object>``-elements. Each such object has two attributes: "pk" and "model",
``<object>``-elements. Each such object has two attributes: "pk" and "model",
the latter being represented by the name of the app ("sessions") and the
the latter being represented by the name of the app ("sessions") and the
...
@@ -198,11 +198,11 @@ Foreign keys and other relational fields are treated a little bit differently::
...
@@ -198,11 +198,11 @@ Foreign keys and other relational fields are treated a little bit differently::
<!-- ... -->
<!-- ... -->
</object>
</object>
In this example we specify that the
auth.Permission object with the PK 27 has
In this example we specify that the
``auth.Permission`` object with the PK 27
a foreign key to the contenttypes.ContentType
instance with the PK 9.
has a foreign key to the ``contenttypes.ContentType``
instance with the PK 9.
ManyToMany-relations are exported for the model that binds them. For instance,
ManyToMany-relations are exported for the model that binds them. For instance,
the
auth.User model has such a relation to the auth.Permission
model::
the
``auth.User`` model has such a relation to the ``auth.Permission``
model::
<object pk="1" model="auth.user">
<object pk="1" model="auth.user">
<!-- ... -->
<!-- ... -->
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment