Address PR feedback

This commit is contained in:
Seamus Johnston 2022-09-26 10:42:19 -05:00
parent 2f9e16194e
commit cbf39aa3c3
No known key found for this signature in database
GPG key ID: 2F21225985069105
3 changed files with 7 additions and 11 deletions

6
.gitignore vendored
View file

@ -6,10 +6,10 @@ docs/research/data/**
public/
credentials*
*pem
*crt
*.pem
*.crt
*bk
*.bk
### The usual garbage files ###

View file

@ -10,6 +10,10 @@ services:
- db
working_dir: /app
entrypoint: python /app/docker_entrypoint.py
deploy:
restart_policy:
condition: on-failure
max_attempts: 5
environment:
# Send stdout and stderr straight to the terminal without buffering
- PYTHONUNBUFFERED=yup

View file

@ -4,7 +4,6 @@ For more information see:
https://docs.djangoproject.com/en/4.0/topics/http/urls/
"""
from django.conf import settings
from django.contrib import admin
from django.urls import include, path
@ -18,10 +17,3 @@ urlpatterns = [
# these views respect the DEBUG setting
path("__debug__/", include("debug_toolbar.urls")),
]
if settings.DEBUG:
import debug_toolbar
urlpatterns = [
path("__debug__/", include(debug_toolbar.urls)),
] + urlpatterns