Tweaked settings to not try to patch missing dev libs.

- Legacy-Id: 15018
This commit is contained in:
Henrik Levkowetz 2018-04-05 20:41:36 +00:00
parent 583d8882c5
commit 51f491ddf0

View file

@ -960,9 +960,11 @@ CHECKS_LIBRARY_PATCHES_TO_APPLY = [
'patch/fix-patch-no-chdir.patch',
]
if DEBUG:
CHECKS_LIBRARY_PATCHES_TO_APPLY += [
'patch/add-django-cprofile-filter.patch',
]
try:
import django_cprofile_middleware # pyflakes:ignore
CHECKS_LIBRARY_PATCHES_TO_APPLY += [ 'patch/add-django-cprofile-filter.patch', ]
except ImportError:
pass
STATS_NAMES_LIMIT = 25