Skip to content
This repository has been archived by the owner on Jan 4, 2022. It is now read-only.

Commit

Permalink
extracted oauthlib version for get_system_info api
Browse files Browse the repository at this point in the history
  • Loading branch information
palazzem committed Jul 5, 2014
1 parent 19775ee commit ab981cd
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions example/example/api_v1.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
from oauth2_provider.decorators import protected_resource
from oauth2_provider import VERSION
from oauth2_provider import VERSION as DOT_VERSION

import json
from django.http import HttpResponse
from django import get_version
from django.views.decorators.csrf import csrf_exempt
from django.http import HttpResponse
from django.http import HttpResponseBadRequest, HttpResponseNotFound
from django.core import serializers
from django.views.decorators.csrf import csrf_exempt
from django.views.decorators.http import require_http_methods
from django.http import HttpResponseBadRequest, HttpResponseNotFound

from oauthlib import __version__ as OAUTHLIB_VERSION
from oauthlib.oauth2 import Server

from .models import MyApplication
Expand All @@ -32,8 +33,8 @@ def get_system_info(request, *args, **kwargs):
A simple "read only" api endpoint, unprotected
"""
data = {
'DOT version': VERSION,
'oauthlib version': '0.5.1',
'DOT version': DOT_VERSION,
'oauthlib version': OAUTHLIB_VERSION,
'Django version': get_version(),
}

Expand Down

0 comments on commit ab981cd

Please sign in to comment.