Skip to content

Commit

Permalink
Merge pull request #1984 from ccnmtl/fix-api-rest-framework
Browse files Browse the repository at this point in the history
Fix errors thrown by accessing Wagtail API due to REST framework library
  • Loading branch information
dc3788 authored Oct 2, 2024
2 parents 8b87997 + 24008fc commit dd56205
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion portfolio/settings_shared.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,18 @@
'modelcluster',
'taggit',
'django.contrib.sitemaps',

'rest_framework',
'portfolio.main',
'portfolio.featured',
'waffle'
]

REST_FRAMEWORK = {
'DEFAULT_RENDERER_CLASSES': (
'rest_framework.renderers.JSONRenderer',
),
}

THUMBNAIL_SUBDIR = "thumbs"
LOGIN_REDIRECT_URL = "/"

Expand Down

0 comments on commit dd56205

Please sign in to comment.