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
2a2d7db0
Kaydet (Commit)
2a2d7db0
authored
May 05, 2014
tarafından
Tim Graham
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
[1.7.x] Fixed #1349 -- Clarified docs on serving files from STATIC/MEDIA_URL.
Backport of
fb7c347f
from master
üst
4b6ba2c1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
index.txt
docs/howto/static-files/index.txt
+3
-0
settings.txt
docs/ref/settings.txt
+6
-1
No files found.
docs/howto/static-files/index.txt
Dosyayı görüntüle @
2a2d7db0
...
...
@@ -75,6 +75,7 @@ details on how ``staticfiles`` finds your files.
by putting those static files inside *another* directory named for the
application itself.
.. _serving-static-files-in-development:
Serving static files during development.
========================================
...
...
@@ -108,6 +109,8 @@ this by adding the following snippet to your urls.py::
folder; it doesn't perform static files discovery like
:mod:`django.contrib.staticfiles`.
.. _serving-uploaded-files-in-development:
Serving files uploaded by a user during development.
====================================================
...
...
docs/ref/settings.txt
Dosyayı görüntüle @
2a2d7db0
...
...
@@ -1723,7 +1723,8 @@ Default: ``''`` (Empty string)
URL that handles the media served from :setting:`MEDIA_ROOT`, used
for :doc:`managing stored files </topics/files>`. It must end in a slash if set
to a non-empty value.
to a non-empty value. You will need to :ref:`configure these files to be served
<serving-uploaded-files-in-development>` in both development and production.
Example: ``"http://media.example.com/"``
...
...
@@ -2851,6 +2852,10 @@ If not ``None``, this will be used as the base path for
It must end in a slash if set to a non-empty value.
You may need to :ref:`configure these files to be served in development
<serving-static-files-in-development>` and will definitely need to do so
:doc:`in production </howto/static-files/deployment>`.
.. setting:: STATICFILES_DIRS
STATICFILES_DIRS
...
...
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