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
618bc4e6
Kaydet (Commit)
618bc4e6
authored
Nis 24, 2015
tarafından
Tim Graham
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Documented INSTALLED_APPS requirement for HStoreField.
üst
6d685b16
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
fields.txt
docs/ref/contrib/postgres/fields.txt
+9
-5
No files found.
docs/ref/contrib/postgres/fields.txt
Dosyayı görüntüle @
618bc4e6
...
...
@@ -251,11 +251,15 @@ HStoreField
A field for storing mappings of strings to strings. The Python data type
used is a ``dict``.
To use this field, you'll need to setup the hstore extension in PostgreSQL
by adding a migration with the
:class:`~django.contrib.postgres.operations.HStoreExtension` operation.
You'll see an error like ``'type "hstore" does not exist'`` if you skip
this step.
To use this field, you'll need to:
1. Add ``'django.contrib.postgres'`` in your :setting:`INSTALLED_APPS`.
2. Setup the hstore extension in PostgreSQL before the first ``CreateModel``
or ``AddField`` operation by adding a migration with the
:class:`~django.contrib.postgres.operations.HStoreExtension` operation.
You'll see an error like ``can't adapt type 'dict'`` if you skip the first
step, or ``type "hstore" does not exist`` if you skip the second.
.. note::
...
...
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