Commit fc00fcab authored by Tanner Prestegard's avatar Tanner Prestegard Committed by GraceDB
Browse files

Removing django-silk from default dev setup

silk was slowing things quite a bit so we won't use it by default,
even in development instances.
parent ae954d12
......@@ -16,14 +16,14 @@ EMBB_MAIL_ADDRESS = 'gracedb@{fqdn}'.format(fqdn=SERVER_FQDN)
debug_middleware = 'debug_toolbar.middleware.DebugToolbarMiddleware'
MIDDLEWARE += [
debug_middleware,
'silk.middleware.SilkyMiddleware',
#'silk.middleware.SilkyMiddleware',
#'core.middleware.profiling.ProfileMiddleware',
]
# Add to installed apps
INSTALLED_APPS += [
'debug_toolbar',
'silk'
#'silk'
]
# Add testserver to ALLOWED_HOSTS
......
......@@ -57,8 +57,7 @@ urlpatterns = [
# We don't require settings.DEBUG for django-silk since running unit tests
# by default setings settings.DEBUG to False, unless you use the
# --debug-mode flag
if settings.DEBUG or ('silk' in settings.INSTALLED_APPS and
['silk' in m for m in settings.MIDDLEWARE]):
if ('silk' in settings.INSTALLED_APPS):
# Add django-silk
urlpatterns = [
url(r'^silk/', include('silk.urls', namespace='silk'))
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment