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
8c20f4af
Kaydet (Commit)
8c20f4af
authored
Haz 11, 2014
tarafından
Greg Chapple
Kaydeden (comit)
Tim Graham
Haz 11, 2014
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
[1.7.x] Added link to data migrations in initial data deprecation note
Backport of
4123f55c
from master
üst
fa42cf77
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
initial-data.txt
docs/howto/initial-data.txt
+3
-2
No files found.
docs/howto/initial-data.txt
Dosyayı görüntüle @
8c20f4af
...
@@ -82,7 +82,7 @@ Automatically loading initial data fixtures
...
@@ -82,7 +82,7 @@ Automatically loading initial data fixtures
If an application uses migrations, there is no automatic loading of
If an application uses migrations, there is no automatic loading of
fixtures. Since migrations will be required for applications in Django 2.0,
fixtures. Since migrations will be required for applications in Django 2.0,
this behavior is considered deprecated. If you want to load initial data
this behavior is considered deprecated. If you want to load initial data
for an app, consider doing it in a
migration
.
for an app, consider doing it in a
:ref:`data migration <data-migrations>`
.
If you create a fixture named ``initial_data.[xml/yaml/json]``, that fixture will
If you create a fixture named ``initial_data.[xml/yaml/json]``, that fixture will
be loaded every time you run :djadmin:`migrate`. This is extremely convenient,
be loaded every time you run :djadmin:`migrate`. This is extremely convenient,
...
@@ -115,7 +115,8 @@ Providing initial SQL data
...
@@ -115,7 +115,8 @@ Providing initial SQL data
If an application uses migrations, there is no loading of 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
(including backend-specific SQL data). Since migrations will be required
for applications in Django 2.0, 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.
If you want to use initial SQL for an app, consider doing it in a
:ref:`data migration <data-migrations>`.
Django provides a hook for passing the database arbitrary SQL that's executed
Django provides a hook for passing the database arbitrary SQL that's executed
just after the CREATE TABLE statements when you run :djadmin:`migrate`. You can
just after the CREATE TABLE statements when you run :djadmin:`migrate`. You can
...
...
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