Change settings.py for the project

master
Jason Zhu 2020-10-21 14:39:11 +11:00
parent 21233d337f
commit 74972967dc
1 changed files with 11 additions and 0 deletions

View File

@ -37,6 +37,10 @@ INSTALLED_APPS = [
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
# 1st party
'puppies',
# 3rd party
'rest_framework',
]
MIDDLEWARE = [
@ -118,3 +122,10 @@ USE_TZ = True
# https://docs.djangoproject.com/en/3.1/howto/static-files/
STATIC_URL = '/static/'
REST_FRAMEWORK = {
# Use Django's standard `django.contrib.auth` permission
# or allow read-only access for unauthenticated users.
'DEFAULT_PERMISSION_CLASSES': [],
'TEST_REQUEST_DEFAULT_FORMAT': 'json'
}