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
ffa8a9ab
Kaydet (Commit)
ffa8a9ab
authored
Haz 14, 2013
tarafından
Florian Apolloner
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed python 3.2 compat.
üst
89bf7a45
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
14 deletions
+14
-14
base.py
django/core/compat_checks/base.py
+3
-3
django_1_6_0.py
django/core/compat_checks/django_1_6_0.py
+9
-9
checksetup.py
django/core/management/commands/checksetup.py
+2
-2
No files found.
django/core/compat_checks/base.py
Dosyayı görüntüle @
ffa8a9ab
...
...
@@ -25,12 +25,12 @@ def check_compatibility():
messages
=
[]
for
check_module
in
COMPAT_CHECKS
:
check
=
getattr
(
check_module
,
u
'run_checks'
,
None
)
check
=
getattr
(
check_module
,
'run_checks'
,
None
)
if
check
is
None
:
warnings
.
warn
(
u
"The '
%
s' module lacks a "
%
check_module
.
__name__
+
u
"'run_checks' method, which is needed to verify compatibility."
"The '
%
s' module lacks a "
%
check_module
.
__name__
+
"'run_checks' method, which is needed to verify compatibility."
)
continue
...
...
django/core/compat_checks/django_1_6_0.py
Dosyayı görüntüle @
ffa8a9ab
...
...
@@ -10,19 +10,19 @@ def check_test_runner():
doing & avoid generating a message.
"""
from
django.conf
import
settings
new_default
=
u
'django.test.runner.DiscoverRunner'
test_runner_setting
=
getattr
(
settings
,
u
'TEST_RUNNER'
,
new_default
)
new_default
=
'django.test.runner.DiscoverRunner'
test_runner_setting
=
getattr
(
settings
,
'TEST_RUNNER'
,
new_default
)
if
test_runner_setting
==
new_default
:
message
=
[
u
"You have not explicitly set 'TEST_RUNNER'. In Django 1.6,"
,
u
"there is a new test runner ('
%
s')"
%
new_default
,
u
"by default. You should ensure your tests are still all"
,
u
"running & behaving as expected. See"
,
u
"https://docs.djangoproject.com/en/dev/releases/1.6/#discovery-of-tests-in-any-test-module"
,
u
"for more information."
,
"You have not explicitly set 'TEST_RUNNER'. In Django 1.6,"
,
"there is a new test runner ('
%
s')"
%
new_default
,
"by default. You should ensure your tests are still all"
,
"running & behaving as expected. See"
,
"https://docs.djangoproject.com/en/dev/releases/1.6/#discovery-of-tests-in-any-test-module"
,
"for more information."
,
]
return
u
' '
.
join
(
message
)
return
' '
.
join
(
message
)
def
run_checks
():
...
...
django/core/management/commands/checksetup.py
Dosyayı görüntüle @
ffa8a9ab
...
...
@@ -6,8 +6,8 @@ from django.core.management.base import NoArgsCommand
class
Command
(
NoArgsCommand
):
help
=
u
"Checks your configuration's compatibility with this version "
+
\
u
"of Django."
help
=
"Checks your configuration's compatibility with this version "
+
\
"of Django."
def
handle_noargs
(
self
,
**
options
):
for
message
in
check_compatibility
():
...
...
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