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
af06203c
Kaydet (Commit)
af06203c
authored
May 07, 2014
tarafından
Tim Graham
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
[1.7.x] Updated some docs for the delayed deprecation of legacy table creation; refs #22340.
Backport of
a2e3c969
from master
üst
ab2865a4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
6 deletions
+11
-6
initial-data.txt
docs/howto/initial-data.txt
+2
-2
deprecation.txt
docs/internals/deprecation.txt
+4
-0
1.7.txt
docs/releases/1.7.txt
+5
-4
No files found.
docs/howto/initial-data.txt
Dosyayı görüntüle @
af06203c
...
...
@@ -80,7 +80,7 @@ Automatically loading initial data fixtures
.. deprecated:: 1.7
If an application uses migrations, there is no automatic loading of
fixtures. Since migrations will be required for applications in Django
1.9
,
fixtures. Since migrations will be required for applications in Django
2.0
,
this behavior is considered deprecated. If you want to load initial data
for an app, consider doing it in a migration.
...
...
@@ -114,7 +114,7 @@ Providing initial SQL data
If an application uses migrations, there is no loading of initial SQL data
(including backend-specific SQL data). Since migrations will be required
for applications in Django
1.9
, this behavior is considered deprecated.
for applications in Django
2.0
, this behavior is considered deprecated.
If you want to use initial SQL for an app, consider doing it in a migration.
Django provides a hook for passing the database arbitrary SQL that's executed
...
...
docs/internals/deprecation.txt
Dosyayı görüntüle @
af06203c
...
...
@@ -37,6 +37,10 @@ details on these changes.
is loaded. In particular, it won't be possible to import models inside
the root package of their application.
* If models are organized in a package, Django will no longer look for
:ref:`initial SQL data<initial-sql>` in ``myapp/models/sql/``. Move your
custom SQL files to ``myapp/sql/``.
* The model and form ``IPAddressField`` will be removed.
* ``AppCommand.handle_app()`` will no longer be supported.
...
...
docs/releases/1.7.txt
Dosyayı görüntüle @
af06203c
...
...
@@ -1312,10 +1312,11 @@ Custom SQL location for models package
Previously, if models were organized in a package (``myapp/models/``) rather
than simply ``myapp/models.py``, Django would look for :ref:`initial SQL data
<initial-sql>` in ``myapp/models/sql/``. This bug has been fixed so that Django
will search ``myapp/sql/`` as documented. After this issue was fixed, migrations
were added which deprecates initial SQL data. Thus, while this change still
exists, the deprecation is irrelevant as the entire feature will be removed in
Django 1.9.
will search ``myapp/sql/`` as documented. The old location will continue to
work until Django 1.9. After this issue was fixed, migrations were added which
deprecates initial SQL data. Thus, while this change still exists, the
deprecation is somehwhat irrelevant as the entire feature will be removed in
Django 2.0 when migrations become compulsory for all applications.
Reorganization of ``django.contrib.sites``
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...
...
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