Private
Public Access
1
0

Initial playing around

This commit is contained in:
Sander Roosendaal
2016-11-19 10:44:59 +01:00
parent 8f6dc13d9f
commit c6726245c2
3 changed files with 64 additions and 1 deletions

View File

@@ -47,6 +47,9 @@ INSTALLED_APPS = [
'translation_manager',
'debug_toolbar',
'django_mailbox',
'rest_framework',
'provider',
'provider.oauth2',
]
MIDDLEWARE_CLASSES = [
@@ -230,5 +233,17 @@ EMAIL_USE_TLS = True
FORECAST_IO_KEY = "bc8196fbd89f11375c7dfc8aa6323c72"
GMAPIKEY = "AIzaSyAgu1w9QSthaGPMLp8y9JedPoMc9sfEgJ8"
# test
# REST Framework
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'
],
'DEFAULT_AUTHENTICATION_CLASSES': (
'rest_framework.authentication.BasicAuthentication',
'rest_framework.authentication.SessionAuthentication',
'rest_framework.authentication.OAuth2Authentication',
),
}

View File

@@ -26,6 +26,7 @@ from rowers import views as rowersviews
urlpatterns = [
url(r'^admin/', admin.site.urls),
url(r'^api-auth/', include('rest_framework.urls', namespace='rest_framework')),
# url('^', include('django.contrib.auth.urls')),
url(r'^$',rootview),
url(r'^version/$',version),