mirror of
https://github.com/pinry/pinry.git
synced 2026-01-10 09:12:07 +01:00
Feature: Allow JsonRender only in production mode
This commit is contained in:
committed by
Isaac Bythewood
parent
0ccef0576a
commit
7406e2fdcc
@@ -31,6 +31,10 @@ DATABASES = {
|
||||
|
||||
USE_X_FORWARDED_HOST = True
|
||||
|
||||
REST_FRAMEWORK['DEFAULT_RENDERER_CLASSES'] = [
|
||||
'rest_framework.renderers.JSONRenderer',
|
||||
]
|
||||
|
||||
try:
|
||||
from .local_settings import *
|
||||
except ImportError:
|
||||
|
||||
Reference in New Issue
Block a user