Python 3 upgrade finished

This commit is contained in:
Fergal Moran
2015-08-20 11:18:53 +01:00
parent 139e23d4c0
commit dfa82d4e76
132 changed files with 6399 additions and 6575 deletions

View File

@@ -29,15 +29,15 @@ class DebugView(APIView):
authentication_classes = (JSONWebTokenAuthentication, )
def get(self, request):
print self.request.session
print(self.request.session)
return Response({'status': 'ok', 'session': self.request.session.session_key},
status=status.HTTP_200_OK)
def post(self, request, format=None):
try:
activity.post_activity('user:message', request.user.userprofile.get_session_id(), 'Hello Sailor')
except Exception, ex:
print ex.message
except Exception as ex:
print(ex)
return Response({
'status': request.user.first_name,