add custom API application class
This commit is contained in:
parent
e634dbcce1
commit
2c68ff8831
2 changed files with 2 additions and 1 deletions
|
@ -71,6 +71,7 @@ INSTALLED_APPS += [
|
|||
"catalog.apps.CatalogConfig",
|
||||
"journal.apps.JournalConfig",
|
||||
"social.apps.SocialConfig",
|
||||
"developer.apps.DeveloperConfig",
|
||||
"legacy.apps.LegacyConfig",
|
||||
]
|
||||
|
||||
|
@ -423,5 +424,6 @@ DISCORD_WEBHOOKS = {}
|
|||
|
||||
NINJA_PAGINATION_PER_PAGE = 20
|
||||
OAUTH2_PROVIDER = {"ACCESS_TOKEN_EXPIRE_SECONDS": 3600 * 24 * 365}
|
||||
OAUTH2_PROVIDER_APPLICATION_MODEL = "developer.Application"
|
||||
|
||||
DEVELOPER_CONSOLE_APPLICATION_CLIENT_ID = "NEODB_DEVELOPER_CONSOLE"
|
||||
|
|
|
@ -21,7 +21,6 @@ from catalog.common.utils import DEFAULT_ITEM_COVER, piece_cover_path
|
|||
from django.utils.baseconv import base62
|
||||
from django.db.models import Q
|
||||
from catalog.models import *
|
||||
from django.contrib.contenttypes.models import ContentType
|
||||
from .renderers import render_md, render_text
|
||||
from catalog.common import jsondata
|
||||
from django.db import connection
|
||||
|
|
Loading…
Add table
Reference in a new issue