Remove custom debug toolbar settings

This commit is contained in:
Rodolfo Carvalho 2015-05-24 14:17:14 +02:00
parent ed7d098cb5
commit 018acd708d
2 changed files with 2 additions and 13 deletions

View File

@ -39,7 +39,8 @@
<div id="explanation">
<p>
You can see more information about this request using the toolbar on the right.<br>
If you are running Django's development server in your local host, you can see more information
about this request using the toolbar on the right.<br>
Please note that by default your Django settings have <code>DEBUG = True</code> and that is not appropriate for production use,
but very handy during development.<br>
Refer to the <a href="https://docs.djangoproject.com/en/1.8/howto/deployment/checklist/">Deployment Checklist</a>

View File

@ -120,15 +120,3 @@ USE_TZ = True
STATIC_URL = '/static/'
STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')
# Django Debug Toolbar settings
DEBUG_TOOLBAR_CONFIG = {
'SHOW_TOOLBAR_CALLBACK': 'project.settings.show_debug_toolbar',
}
def show_debug_toolbar(request):
if request.is_ajax():
return False
return bool(DEBUG)