mirror of
https://github.com/mediacms-io/mediacms.git
synced 2025-07-21 23:38:30 +00:00
format content (#198)
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
from __future__ import absolute_import
|
||||
|
||||
from .celery import app as celery_app
|
||||
|
||||
__all__ = ["celery_app"]
|
||||
|
@ -1,5 +1,7 @@
|
||||
from __future__ import absolute_import
|
||||
|
||||
import os
|
||||
|
||||
from celery import Celery
|
||||
|
||||
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "cms.settings")
|
||||
|
@ -1,8 +1,9 @@
|
||||
from rest_framework.pagination import PageNumberPagination
|
||||
from rest_framework.response import Response
|
||||
from collections import OrderedDict # requires Python 2.7 or later
|
||||
|
||||
from django.core.paginator import Paginator
|
||||
from django.utils.functional import cached_property
|
||||
from rest_framework.pagination import PageNumberPagination
|
||||
from rest_framework.response import Response
|
||||
|
||||
|
||||
class FasterDjangoPaginator(Paginator):
|
||||
|
@ -1,5 +1,6 @@
|
||||
from django.conf import settings
|
||||
from rest_framework import permissions
|
||||
|
||||
from files.methods import is_mediacms_editor, is_mediacms_manager
|
||||
|
||||
|
||||
|
@ -1,4 +1,5 @@
|
||||
import os
|
||||
|
||||
from celery.schedules import crontab
|
||||
|
||||
DEBUG = False
|
||||
@ -17,7 +18,7 @@ CAN_ADD_MEDIA = "all"
|
||||
PORTAL_WORKFLOW = "public"
|
||||
|
||||
# valid values: 'light', 'dark'.
|
||||
DEFAULT_THEME = "light"
|
||||
DEFAULT_THEME = "light"
|
||||
|
||||
|
||||
# These are passed on every request
|
||||
@ -213,9 +214,7 @@ POST_UPLOAD_AUTHOR_MESSAGE_UNLISTED_NO_COMMENTARY = ""
|
||||
CANNOT_ADD_MEDIA_MESSAGE = ""
|
||||
|
||||
# mp4hls command, part of Bendo4
|
||||
MP4HLS_COMMAND = (
|
||||
"/home/mediacms.io/mediacms/Bento4-SDK-1-6-0-637.x86_64-unknown-linux/bin/mp4hls"
|
||||
)
|
||||
MP4HLS_COMMAND = "/home/mediacms.io/mediacms/Bento4-SDK-1-6-0-637.x86_64-unknown-linux/bin/mp4hls"
|
||||
|
||||
# highly experimental, related with remote workers
|
||||
ADMIN_TOKEN = "c2b8e1838b6128asd333ddc5e24"
|
||||
|
@ -1,7 +1,7 @@
|
||||
import debug_toolbar
|
||||
from django.conf.urls import include, url
|
||||
from django.contrib import admin
|
||||
from django.urls import path
|
||||
from django.conf.urls import url, include
|
||||
import debug_toolbar
|
||||
|
||||
urlpatterns = [
|
||||
url(r"^__debug__/", include(debug_toolbar.urls)),
|
||||
|
Reference in New Issue
Block a user