cfr #121 Co-authored-by: Christophe Siraut <d@tobald.eu.org> Co-authored-by: bkfox <thomas bkfox net> Co-authored-by: Thomas Kairos <thomas@bkfox.net> Reviewed-on: #131 Co-authored-by: Chris Tactic <ctactic@noreply.git.radiocampus.be> Co-committed-by: Chris Tactic <ctactic@noreply.git.radiocampus.be>
This commit is contained in:
@ -183,9 +183,9 @@ THUMBNAIL_PROCESSORS = (
|
||||
|
||||
# Enabled applications
|
||||
INSTALLED_APPS = (
|
||||
"aircox.apps.AircoxConfig",
|
||||
"aircox.apps.AircoxAdminConfig",
|
||||
"radiocampus",
|
||||
"aircox_streamer.apps.AircoxStreamerConfig",
|
||||
"aircox.apps.AircoxConfig",
|
||||
# Aircox dependencies
|
||||
"rest_framework",
|
||||
"django_filters",
|
||||
@ -204,6 +204,7 @@ INSTALLED_APPS = (
|
||||
"django.contrib.sessions",
|
||||
"django.contrib.messages",
|
||||
"django.contrib.staticfiles",
|
||||
"django.contrib.admin",
|
||||
)
|
||||
|
||||
MIDDLEWARE = (
|
||||
@ -237,6 +238,7 @@ TEMPLATES = [
|
||||
"django.template.context_processors.static",
|
||||
"django.template.context_processors.tz",
|
||||
"django.contrib.messages.context_processors.messages",
|
||||
"aircox.context_processors.station",
|
||||
),
|
||||
"loaders": (
|
||||
"django.template.loaders.filesystem.Loader",
|
||||
@ -248,3 +250,12 @@ TEMPLATES = [
|
||||
|
||||
|
||||
WSGI_APPLICATION = "instance.wsgi.application"
|
||||
|
||||
LOGOUT_REDIRECT_URL = "/"
|
||||
|
||||
|
||||
REST_FRAMEWORK = {
|
||||
"DEFAULT_PAGINATION_CLASS": "rest_framework.pagination.LimitOffsetPagination",
|
||||
"PAGE_SIZE": 50,
|
||||
"DEFAULT_FILTER_BACKENDS": ["django_filters.rest_framework.DjangoFilterBackend"],
|
||||
}
|
||||
|
@ -20,9 +20,13 @@ from django.contrib import admin
|
||||
from django.urls import include, path
|
||||
|
||||
import aircox.urls
|
||||
import aircox_streamer.urls
|
||||
|
||||
urlpatterns = aircox.urls.urls + [
|
||||
urlpatterns = [
|
||||
*aircox.urls.urls,
|
||||
path("streamer/", include((aircox_streamer.urls.urls, "aircox_streamer"), namespace="streamer")),
|
||||
path("admin/", admin.site.urls),
|
||||
path("accounts/", include("django.contrib.auth.urls")),
|
||||
path("ckeditor/", include("ckeditor_uploader.urls")),
|
||||
path("filer/", include("filer.urls")),
|
||||
]
|
||||
|
Reference in New Issue
Block a user