tested again
This commit is contained in:
BIN
rowers/tests/testdata/testdata.tcx.gz
vendored
BIN
rowers/tests/testdata/testdata.tcx.gz
vendored
Binary file not shown.
@@ -426,6 +426,9 @@ def get_crewnerd_liked(request):
|
||||
|
||||
@csrf_exempt
|
||||
@logged_in_or_basicauth()
|
||||
#@api_view(["POST"])
|
||||
#@permission_required('rower.is_not_freecoach', fn=get_user_by_userid, raise_exception=True)
|
||||
#@permission_classes([IsAuthenticated])
|
||||
def strokedata_rowingdata(request):
|
||||
"""
|
||||
Upload a .csv file (rowingdata standard) through API, using Basic Auth
|
||||
|
||||
@@ -481,7 +481,7 @@ REST_FRAMEWORK = {
|
||||
# 'rest_framework.permissions.DjangoModelPermissions'
|
||||
],
|
||||
'DEFAULT_AUTHENTICATION_CLASSES': (
|
||||
'rest_framework.authentication.BasicAuthentication',
|
||||
#'rest_framework.authentication.BasicAuthentication',
|
||||
# 'rest_framework.authentication.SessionAuthentication',
|
||||
# 'rest_framework.authentication.TokenAuthentication',
|
||||
'oauth2_provider.contrib.rest_framework.OAuth2Authentication',
|
||||
|
||||
Reference in New Issue
Block a user