Skip to content

Commit 0edd637

Browse files
chore: rest framework visibility setting
1 parent 9a1fcec commit 0edd637

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,7 @@
22
venv
33

44
# Python specific
5-
__pycache__
5+
__pycache__
6+
7+
# Django specific
8+
db.sqlite3

rtd/settings.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,3 +121,13 @@
121121
# https://docs.djangoproject.com/en/3.0/howto/static-files/
122122

123123
STATIC_URL = '/static/'
124+
125+
126+
# Django Rest Framework
127+
128+
# Enable this if on production
129+
REST_FRAMEWORK = {
130+
'DEFAULT_RENDERER_CLASSES': (
131+
'rest_framework.renderers.JSONRenderer',
132+
)
133+
}

0 commit comments

Comments
 (0)