mirror of
https://github.com/boostorg/website-v2.git
synced 2026-01-19 04:42:17 +00:00
11 lines
237 B
Python
11 lines
237 B
Python
from django.conf import settings
|
|
|
|
from oauth2_provider.models import Application
|
|
|
|
|
|
def get_oauth_client():
|
|
try:
|
|
return Application.objects.get(name=settings.OAUTH_APP_NAME)
|
|
except Application.DoesNotExist:
|
|
return
|