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
c7f44ae0
Kaydet (Commit)
c7f44ae0
authored
Eyl 15, 2012
tarafından
Claude Paroz
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed #17948 -- Isolated auth tests from custom template loaders
Thanks andrey@kostenko.name for the report.
üst
b1fb6f48
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
views.py
django/contrib/auth/tests/views.py
+3
-2
signals.py
django/test/signals.py
+7
-0
No files found.
django/contrib/auth/tests/views.py
Dosyayı görüntüle @
c7f44ae0
import
os
import
re
from
django.conf
import
settings
from
django.conf
import
global_settings
,
settings
from
django.contrib.sites.models
import
Site
,
RequestSite
from
django.contrib.auth.models
import
User
from
django.core
import
mail
...
...
@@ -23,7 +23,8 @@ from django.contrib.auth.forms import (AuthenticationForm, PasswordChangeForm,
(
'en'
,
'English'
),
),
LANGUAGE_CODE
=
'en'
,
TEMPLATE_DIRS
=
(
TEMPLATE_LOADERS
=
global_settings
.
TEMPLATE_LOADERS
,
TEMPLATE_DIRS
=
(
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
'templates'
),
),
USE_TZ
=
False
,
...
...
django/test/signals.py
Dosyayı görüntüle @
c7f44ae0
...
...
@@ -51,6 +51,13 @@ def clear_context_processors_cache(**kwargs):
context
.
_standard_context_processors
=
None
@receiver
(
setting_changed
)
def
clear_template_loaders_cache
(
**
kwargs
):
if
kwargs
[
'setting'
]
==
'TEMPLATE_LOADERS'
:
from
django.template
import
loader
loader
.
template_source_loaders
=
None
@receiver
(
setting_changed
)
def
clear_serializers_cache
(
**
kwargs
):
if
kwargs
[
'setting'
]
==
'SERIALIZATION_MODULES'
:
...
...
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