1
1
from oauth2_provider .decorators import protected_resource
2
- from oauth2_provider import VERSION
2
+ from oauth2_provider import VERSION as DOT_VERSION
3
3
4
4
import json
5
- from django .http import HttpResponse
6
5
from django import get_version
7
- from django .views .decorators .csrf import csrf_exempt
6
+ from django .http import HttpResponse
7
+ from django .http import HttpResponseBadRequest , HttpResponseNotFound
8
8
from django .core import serializers
9
+ from django .views .decorators .csrf import csrf_exempt
9
10
from django .views .decorators .http import require_http_methods
10
- from django .http import HttpResponseBadRequest , HttpResponseNotFound
11
11
12
+ from oauthlib import __version__ as OAUTHLIB_VERSION
12
13
from oauthlib .oauth2 import Server
13
14
14
15
from .models import MyApplication
@@ -32,8 +33,8 @@ def get_system_info(request, *args, **kwargs):
32
33
A simple "read only" api endpoint, unprotected
33
34
"""
34
35
data = {
35
- 'DOT version' : VERSION ,
36
- 'oauthlib version' : '0.5.1' ,
36
+ 'DOT version' : DOT_VERSION ,
37
+ 'oauthlib version' : OAUTHLIB_VERSION ,
37
38
'Django version' : get_version (),
38
39
}
39
40
0 commit comments