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
2c1384fb
Kaydet (Commit)
2c1384fb
authored
Tem 06, 2014
tarafından
Collin Anderson
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed a few PEP8 errors in settings doc.
üst
6d302f63
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
settings.txt
docs/ref/settings.txt
+9
-9
No files found.
docs/ref/settings.txt
Dosyayı görüntüle @
2c1384fb
...
@@ -88,8 +88,8 @@ middleware; if so this middleware must be listed first in
...
@@ -88,8 +88,8 @@ middleware; if so this middleware must be listed first in
wildcard::
wildcard::
ALLOWED_HOSTS = [
ALLOWED_HOSTS = [
'.example.com', # Allow domain and subdomains
'.example.com',
# Allow domain and subdomains
'.example.com.', # Also allow FQDN and subdomains
'.example.com.',
# Also allow FQDN and subdomains
]
]
In Django 1.7, the trailing dot is stripped when performing host validation,
In Django 1.7, the trailing dot is stripped when performing host validation,
...
@@ -1241,7 +1241,7 @@ FILE_UPLOAD_HANDLERS
...
@@ -1241,7 +1241,7 @@ FILE_UPLOAD_HANDLERS
Default::
Default::
("django.core.files.uploadhandler.MemoryFileUploadHandler",
("django.core.files.uploadhandler.MemoryFileUploadHandler",
"django.core.files.uploadhandler.TemporaryFileUploadHandler"
,
)
"django.core.files.uploadhandler.TemporaryFileUploadHandler")
A tuple of handlers to use for uploading. See :doc:`/topics/files` for details.
A tuple of handlers to use for uploading. See :doc:`/topics/files` for details.
...
@@ -1622,7 +1622,7 @@ Example::
...
@@ -1622,7 +1622,7 @@ Example::
LOCALE_PATHS = (
LOCALE_PATHS = (
'/home/www/project/common_files/locale',
'/home/www/project/common_files/locale',
'/var/local/translations/locale'
'/var/local/translations/locale'
,
)
)
Django will look within each of these paths for the ``<locale_code>/LC_MESSAGES``
Django will look within each of these paths for the ``<locale_code>/LC_MESSAGES``
...
@@ -1739,7 +1739,7 @@ MIDDLEWARE_CLASSES
...
@@ -1739,7 +1739,7 @@ MIDDLEWARE_CLASSES
Default::
Default::
('django.middleware.common.CommonMiddleware',
('django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware'
,
)
'django.middleware.csrf.CsrfViewMiddleware')
A tuple of middleware classes to use. See :doc:`/topics/http/middleware`.
A tuple of middleware classes to use. See :doc:`/topics/http/middleware`.
...
@@ -1757,7 +1757,7 @@ MIGRATION_MODULES
...
@@ -1757,7 +1757,7 @@ MIGRATION_MODULES
Default::
Default::
{} # empty dictionary
{}
# empty dictionary
A dictionary specifying the package where migration modules can be found on a per-app basis. The default value
A dictionary specifying the package where migration modules can be found on a per-app basis. The default value
of this setting is an empty dictionary, but the default package name for migration modules is ``migrations``.
of this setting is an empty dictionary, but the default package name for migration modules is ``migrations``.
...
@@ -1930,7 +1930,7 @@ A dictionary of modules containing serializer definitions (provided as
...
@@ -1930,7 +1930,7 @@ A dictionary of modules containing serializer definitions (provided as
strings), keyed by a string identifier for that serialization type. For
strings), keyed by a string identifier for that serialization type. For
example, to define a YAML serializer, use::
example, to define a YAML serializer, use::
SERIALIZATION_MODULES = {
'yaml' : 'path.to.yaml_serializer'
}
SERIALIZATION_MODULES = {
'yaml': 'path.to.yaml_serializer'
}
.. setting:: SERVER_EMAIL
.. setting:: SERVER_EMAIL
...
@@ -2452,7 +2452,7 @@ Default::
...
@@ -2452,7 +2452,7 @@ Default::
'django.contrib.auth.hashers.SHA1PasswordHasher',
'django.contrib.auth.hashers.SHA1PasswordHasher',
'django.contrib.auth.hashers.MD5PasswordHasher',
'django.contrib.auth.hashers.MD5PasswordHasher',
'django.contrib.auth.hashers.UnsaltedMD5PasswordHasher',
'django.contrib.auth.hashers.UnsaltedMD5PasswordHasher',
'django.contrib.auth.hashers.CryptPasswordHasher'
,
)
'django.contrib.auth.hashers.CryptPasswordHasher')
.. _settings-messages:
.. _settings-messages:
...
@@ -2516,7 +2516,7 @@ Default::
...
@@ -2516,7 +2516,7 @@ Default::
messages.INFO: 'info',
messages.INFO: 'info',
messages.SUCCESS: 'success',
messages.SUCCESS: 'success',
messages.WARNING: 'warning',
messages.WARNING: 'warning',
messages.ERROR: 'error'
,
}
messages.ERROR: 'error'}
This sets the mapping of message level to message tag, which is typically
This sets the mapping of message level to message tag, which is typically
rendered as a CSS class in HTML. If you specify a value, it will extend
rendered as a CSS class in HTML. If you specify a value, it will extend
...
...
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