Skip to content

Commit 33ba8ca

Browse files
committed
fix: settings and urls
1 parent ca73591 commit 33ba8ca

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

PastebinAPI/settings.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@
3131
# SECURITY WARNING: don't run with debug turned on in production!
3232
DEBUG = True
3333

34+
if IN_PROD:
35+
DEBUG = False
36+
3437
ALLOWED_HOSTS = ['0.0.0.0', 'localhost', '127.0.0.1',
3538
'pastebin-api-nc-b2d037a42bfc.herokuapp.com']
3639

PastebinAPI/urls.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
1. Import the include() function: from django.urls import include, path
1515
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
1616
"""
17-
from django.conf import settings
1817
from django.urls import include, path
1918

2019
urlpatterns = [

0 commit comments

Comments
 (0)