cleanup
This commit is contained in:
parent
fdbac8cdd2
commit
eb29cc2627
1 changed files with 11 additions and 11 deletions
|
|
@ -100,7 +100,8 @@ REGISTER_SCOPE_SCOPE = None
|
|||
REST_FRAMEWORK = {
|
||||
'DEFAULT_AUTHENTICATION_CLASSES': (
|
||||
'oauth2_provider.contrib.rest_framework.OAuth2Authentication',
|
||||
'rest_framework.authentication.SessionAuthentication',
|
||||
# 'rest_framework.authentication.SessionAuthentication',
|
||||
'rest_framework.authentication.TokenAuthentication',
|
||||
),
|
||||
'DEFAULT_PERMISSION_CLASSES': (
|
||||
'rest_framework.permissions.IsAuthenticated',
|
||||
|
|
@ -111,11 +112,18 @@ REST_FRAMEWORK = {
|
|||
}
|
||||
|
||||
SPECTACULAR_SETTINGS = {
|
||||
'TITLE': 'wallet',
|
||||
'DESCRIPTION': 'wallet api reference',
|
||||
'TITLE': 'Gooyal Wallet',
|
||||
'DESCRIPTION': 'Gooyal wallet API reference',
|
||||
'VERSION': '1.0.0',
|
||||
'SERVE_INCLUDE_SCHEMA': False,
|
||||
# OTHER SETTINGS
|
||||
# Oauth2 related settings. used for example by django-oauth2-toolkit.
|
||||
# https://spec.openapis.org/oas/v3.0.3#oauth-flows-object
|
||||
'OAUTH2_FLOWS': [],
|
||||
'OAUTH2_AUTHORIZATION_URL': f'{BASE_OAUTH2_PROVIDER_URL}/oauth2/authorize/',
|
||||
'OAUTH2_TOKEN_URL': f'{BASE_OAUTH2_PROVIDER_URL}/oauth2/token/',
|
||||
'OAUTH2_REFRESH_URL': None,
|
||||
'OAUTH2_SCOPES': None,
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -233,14 +241,6 @@ LOGIN_REDIRECT_URL = '/'
|
|||
CRISPY_ALLOWED_TEMPLATE_PACKS = "bootstrap5"
|
||||
CRISPY_TEMPLATE_PACK = "bootstrap5"
|
||||
|
||||
SPECTACULAR_SETTINGS = {
|
||||
'TITLE': 'srv',
|
||||
'DESCRIPTION': 'service api reference',
|
||||
'VERSION': '1.0.0',
|
||||
'SERVE_INCLUDE_SCHEMA': False,
|
||||
# OTHER SETTINGS
|
||||
}
|
||||
|
||||
AUTH_USER_MODEL = 'users.User'
|
||||
CORS_ORIGIN_ALLOW_ALL = True
|
||||
CSRF_TRUSTED_ORIGINS = ['http://*.gooyal.com', 'https://*.gooyal.com']
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue