Skip to content
This repository was archived by the owner on Dec 10, 2017. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions kannji/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'rest_framework'
]

MIDDLEWARE = [
Expand Down Expand Up @@ -123,3 +124,12 @@
# https://docs.djangoproject.com/en/1.10/howto/static-files/

STATIC_URL = '/static/'


REST_FRAMEWORK = {
# Use Django's standard `django.contrib.auth` permissions,
# or allow read-only access for unauthenticated users.
'DEFAULT_PERMISSION_CLASSES': [
'rest_framework.permissions.DjangoModelPermissionsOrAnonReadOnly'
]
}
1 change: 1 addition & 0 deletions kannji/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,4 @@

if DEBUG:
urlpatterns.append(url(r'^admin/', admin.site.urls))
urlpatterns.append(url(r'^api-auth/', include('rest_framework.urls', namespace='rest_framework')))