Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit83b9773

Browse files
committed
fix(ci): no toolbar during test runs
1 parente80d424 commit83b9773

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

‎pydotorg/settings/local.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
importsys
2+
13
from .baseimport*
24
importos
35

@@ -6,10 +8,6 @@
68
ALLOWED_HOSTS= ['*']
79
INTERNAL_IPS= ['127.0.0.1']
810

9-
DEBUG_TOOLBAR_CONFIG= {
10-
"SHOW_TOOLBAR_CALLBACK" :lambdarequest:True,
11-
}
12-
1311
# Set the path to the location of the content files for python.org
1412
# For example,
1513
# PYTHON_ORG_CONTENT_SVN_PATH = '/Users/flavio/working_copies/beta.python.org/build/data'
@@ -58,9 +56,12 @@
5856
# yui-compressor.
5957
# PIPELINE['YUI_BINARY'] = '/usr/bin/java -Xss200048k -jar /usr/share/yui-compressor/yui-compressor.jar'
6058

61-
INSTALLED_APPS+= [
62-
'debug_toolbar',
63-
]
59+
60+
if"test"notinsys.argvandDEBUG:
61+
INSTALLED_APPS+= ["debug_toolbar"]
62+
DEBUG_TOOLBAR_CONFIG= {
63+
"SHOW_TOOLBAR_CALLBACK":lambdarequest:True,
64+
}
6465

6566
MIDDLEWARE+= [
6667
'debug_toolbar.middleware.DebugToolbarMiddleware',

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp