Private
Public Access
1
0

changed API to accept forms not json encoding

This commit is contained in:
Sander Roosendaal
2016-12-23 09:23:35 +01:00
parent 24ca451d01
commit d60f24c040
3 changed files with 11 additions and 8 deletions

View File

@@ -262,7 +262,7 @@ GMAPIKEY = "AIzaSyAgu1w9QSthaGPMLp8y9JedPoMc9sfEgJ8"
OAUTH2_PROVIDER = {
# this is the list of available scopes
'SCOPES': {'read': 'Read scope', 'write': 'Write scope', 'groups': 'Access to your groups'},
'OAUTH2_BACKEND_CLASS': 'oauth2_provider.oauth2_backends.JSONOAuthLibCore'
# 'OAUTH2_BACKEND_CLASS': 'oauth2_provider.oauth2_backends.JSONOAuthLibCore'
}

View File

@@ -27,15 +27,9 @@ 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),
# url(r'^rowingdata/$',rowingdata,{'formloc':'/rowingdata/'}),
# url(r'^nrowingdata/$',nrowingdata,{'formloc':'/nrowingdata/'}),
# url(r'^upload/$',uploadfile,{'formloc':'/upload/'}),
url(r'^addresult/(.+.*)/$',wait),
# url(r'^waitforplot/(.+.*)/$',waitforplot),
# url(r'^showplot/(.+.*)/$',showplot),
url(r'^login/',auth_views.login, name='login'),
url(r'^logout/',auth_views.logout_then_login,name='logout'),
url(r'^password_change_done/$',auth_views.password_change_done,name='password_change_done'),