search & eval reprocess
This commit is contained in:
@@ -33,13 +33,14 @@ ALLOWED_HOSTS = []
|
||||
|
||||
REST_FRAMEWORK = {
|
||||
'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.PageNumberPagination',
|
||||
'PAGE_SIZE': 10,
|
||||
'PAGE_SIZE': 25,
|
||||
'DEFAULT_RENDERER_CLASSES': [
|
||||
'rest_framework.renderers.JSONRenderer',
|
||||
],
|
||||
'DEFAULT_PARSER_CLASSES': [
|
||||
'rest_framework.parsers.JSONParser',
|
||||
],
|
||||
'DEFAULT_FILTER_BACKENDS': ['django_filters.rest_framework.DjangoFilterBackend'],
|
||||
}
|
||||
|
||||
INSTALLED_APPS = [
|
||||
@@ -51,6 +52,7 @@ INSTALLED_APPS = [
|
||||
'django.contrib.sessions',
|
||||
'django.contrib.messages',
|
||||
'django.contrib.staticfiles',
|
||||
'django_filters',
|
||||
'rest_framework'
|
||||
]
|
||||
|
||||
|
||||
@@ -15,17 +15,15 @@ Including another URLconf
|
||||
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
|
||||
"""
|
||||
from django.urls import include, path
|
||||
from rest_framework import routers
|
||||
from rest_framework.schemas import get_schema_view
|
||||
from django.views.generic import TemplateView
|
||||
from sde.urls import router as sde_router
|
||||
from api.urls import router as api_router
|
||||
from sde.urls import urlpatterns as sde_urls
|
||||
from api.urls import urlpatterns as api_urls
|
||||
|
||||
|
||||
# Wire up our API using automatic URL routing.
|
||||
# Additionally, we include login URLs for the browsable API.
|
||||
urlpatterns = [
|
||||
path('', include(api_router.urls)),
|
||||
path('sde/', include(sde_router.urls)),
|
||||
path('api/', include(api_urls)),
|
||||
path('sde/', include(sde_urls)),
|
||||
path('api-auth/', include('rest_framework.urls', namespace='rest_framework')),
|
||||
path('openapi/', get_schema_view(
|
||||
title="Mabras",
|
||||
|
||||
Reference in New Issue
Block a user