Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

75 lines (54 sloc) 3.014 kB
# Before we do anything else, get some default settings built into Arkestra.
# They are not just Arkestra settings, but settings for other applications
# that Arkestra requires to be just so.
from arkestra_utilities.settings import *
# These are the only settings you really need.
# If you need to modify other aspects of Arkestra's behaviour, see the
# settings that are available in arkestra_utilities.settings; copy them
# here and modify them here (not there)
# ------------------------ Arkestra settings
# must match the id of your base or default entity
ARKESTRA_BASE_ENTITY = 1
# MULTIPLE_ENTITY_MODE is for projects hosting the site of more than one entity
# This does not necessarily entail a site for complex organisation,
# or for a number of different organisations - being able to redirect
# news and events items to particular entities for example requires
# MULTIPLE_ENTITY_MODE to be True
MULTIPLE_ENTITY_MODE = True
# how will video be encoded? by a thread? well, that's OK just for proof of concept
# but not really viable for anything else. We can use celery instead - but you have
# to set it up - see the Django Celery section in settings
USE_CELERY_FOR_VIDEO_ENCODING = False
# ------------------------ Semantic editor
import os
from settings import STATIC_URL
SEMANTICEDITOR_MEDIA_URL = os.path.join(STATIC_URL, "semanticeditor/")
PAGE_TITLE_HEADING_LEVEL = 2
# ensure that the highest_page_body_heading_level is made available below
WYM_CONTAINERS = ",\n".join([
"{'name': 'P', 'title': 'Paragraph', 'css': 'wym_containers_p'}",
# "{'name': 'H1', 'title': 'Heading_1', 'css': 'wym_containers_h1'}", # I assume you reserve <h1> for your page templates
"{'name': 'H2', 'title': 'Heading_2', 'css': 'wym_containers_h2'}",
"{'name': 'H3', 'title': 'Heading_3', 'css': 'wym_containers_h3'}",
"{'name': 'H4', 'title': 'Heading_4', 'css': 'wym_containers_h4'}",
"{'name': 'H5', 'title': 'Heading_5', 'css': 'wym_containers_h5'}",
"{'name': 'H6', 'title': 'Heading_6', 'css': 'wym_containers_h6'}",
# "{'name': 'PRE', 'title': 'Preformatted', 'css': 'wym_containers_pre'}",
"{'name': 'BLOCKQUOTE', 'title': 'Blockquote', 'css': 'wym_containers_blockquote'}",
# "{'name': 'TH', 'title': 'Table_Header', 'css': 'wym_containers_th'}", # not ready for this yet
])
# ------------------------ Link system
# what filetypes can the user provide links to?
PERMITTED_FILETYPES = {
"pdf": "Portable Document Format",
"txt": "Plain text",
"doc": "MS Word (avoid using if possible)",
"rtf": "Rich Text Format",
"csv": "Comma-separated values",
}
# -------- Headings ----------------------
# global value for the heading level for page titles (e.g. entity names in entity pages)
PAGE_TITLE_HEADING_LEVEL = 1
# The default (typically, the next down from the PAGE_TITLE_HEADING_LEVEL)
IN_BODY_HEADING_LEVEL = 2
PLUGIN_HEADING_LEVEL_DEFAULT = 2
Jump to Line
Something went wrong with that request. Please try again.