diff --git a/puppy_store/puppy_store/settings.py b/puppy_store/puppy_store/settings.py index 6f6a7a7..f661ad6 100644 --- a/puppy_store/puppy_store/settings.py +++ b/puppy_store/puppy_store/settings.py @@ -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' +} \ No newline at end of file