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
ccb2b574
Kaydet (Commit)
ccb2b574
authored
Kas 17, 2012
tarafından
Aymeric Augustin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed #19315 -- Improved markup in admin FAQ.
Thanks ClaesBas.
üst
4585e123
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
10 deletions
+15
-10
admin.txt
docs/faq/admin.txt
+13
-10
index.txt
docs/ref/contrib/admin/index.txt
+2
-0
No files found.
docs/faq/admin.txt
Dosyayı görüntüle @
ccb2b574
...
@@ -10,8 +10,8 @@ things:
...
@@ -10,8 +10,8 @@ things:
* Set the :setting:`SESSION_COOKIE_DOMAIN` setting in your admin config
* Set the :setting:`SESSION_COOKIE_DOMAIN` setting in your admin config
file to match your domain. For example, if you're going to
file to match your domain. For example, if you're going to
"http://www.example.com/admin/" in your browser, in
"http://www.example.com/admin/" in your browser, in
"myproject.settings" you
"myproject.settings" you should set ``SESSION_COOKIE_DOMAIN = 'www.example.com'``
.
should set :setting:`SESSION_COOKIE_DOMAIN` = 'www.example.com'
.
* Some browsers (Firefox?) don't like to accept cookies from domains that
* Some browsers (Firefox?) don't like to accept cookies from domains that
don't have dots in them. If you're running the admin site on "localhost"
don't have dots in them. If you're running the admin site on "localhost"
...
@@ -23,8 +23,9 @@ I can't log in. When I enter a valid username and password, it brings up the log
...
@@ -23,8 +23,9 @@ I can't log in. When I enter a valid username and password, it brings up the log
-----------------------------------------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------------------------------------------------
If you're sure your username and password are correct, make sure your user
If you're sure your username and password are correct, make sure your user
account has ``is_active`` and ``is_staff`` set to True. The admin site only
account has :attr:`~django.contrib.auth.models.User.is_active` and
allows access to users with those two fields both set to True.
:attr:`~django.contrib.auth.models.User.is_staff` set to True. The admin site
only allows access to users with those two fields both set to True.
How can I prevent the cache middleware from caching the admin site?
How can I prevent the cache middleware from caching the admin site?
-------------------------------------------------------------------
-------------------------------------------------------------------
...
@@ -64,9 +65,10 @@ My "list_filter" contains a ManyToManyField, but the filter doesn't display.
...
@@ -64,9 +65,10 @@ My "list_filter" contains a ManyToManyField, but the filter doesn't display.
Django won't bother displaying the filter for a ``ManyToManyField`` if there
Django won't bother displaying the filter for a ``ManyToManyField`` if there
are fewer than two related objects.
are fewer than two related objects.
For example, if your ``list_filter`` includes ``sites``, and there's only one
For example, if your :attr:`~django.contrib.admin.ModelAdmin.list_filter`
site in your database, it won't display a "Site" filter. In that case,
includes :doc:`sites </ref/contrib/sites>`, and there's only one site in your
filtering by site would be meaningless.
database, it won't display a "Site" filter. In that case, filtering by site
would be meaningless.
Some objects aren't appearing in the admin.
Some objects aren't appearing in the admin.
-------------------------------------------
-------------------------------------------
...
@@ -85,9 +87,10 @@ How can I customize the functionality of the admin interface?
...
@@ -85,9 +87,10 @@ How can I customize the functionality of the admin interface?
You've got several options. If you want to piggyback on top of an add/change
You've got several options. If you want to piggyback on top of an add/change
form that Django automatically generates, you can attach arbitrary JavaScript
form that Django automatically generates, you can attach arbitrary JavaScript
modules to the page via the model's ``class Admin`` ``js`` parameter. That
modules to the page via the model's class Admin :ref:`js parameter
parameter is a list of URLs, as strings, pointing to JavaScript modules that
<modeladmin-media-definitions>`. That parameter is a list of URLs, as strings,
will be included within the admin form via a ``<script>`` tag.
pointing to JavaScript modules that will be included within the admin form via
a ``<script>`` tag.
If you want more flexibility than simply tweaking the auto-generated forms,
If you want more flexibility than simply tweaking the auto-generated forms,
feel free to write custom views for the admin. The admin is powered by Django
feel free to write custom views for the admin. The admin is powered by Django
...
...
docs/ref/contrib/admin/index.txt
Dosyayı görüntüle @
ccb2b574
...
@@ -1377,6 +1377,8 @@ instances which allow you to easily customize the response data before
...
@@ -1377,6 +1377,8 @@ instances which allow you to easily customize the response data before
rendering. For more details, see the
rendering. For more details, see the
:doc:`TemplateResponse documentation </ref/template-response>`.
:doc:`TemplateResponse documentation </ref/template-response>`.
.. _modeladmin-media-definitions:
``ModelAdmin`` media definitions
``ModelAdmin`` media definitions
--------------------------------
--------------------------------
...
...
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