-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.py
50 lines (31 loc) · 1.04 KB
/
settings.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
import os
from jikji.publisher import LocalPublisher, S3Publisher
from lib import security
from lib.publisher import MementoPublisher
# Root Path of Application
ROOT_PATH = os.path.dirname(__file__)
# Absolute directory path includes Template files
TEMPLATE_ROOT = ROOT_PATH + '/template'
# Directory that includes Static files (to copied to output)
STATIC_ROOT = ROOT_PATH + '/static'
# Directory that includes View files
VIEW_ROOT = ROOT_PATH + '/views'
# Publisher instance used after generation
# PUBLISHER = LocalPublisher(output_root=ROOT_PATH + '/_output')
# PUBLISHER = LocalPublisher('/var/www/dev')
# PUBLISHER = S3Publisher('beta.memento.live')
PUBLISHER = MementoPublisher()
# Scripts that runned on initializing application
INIT_SCRIPTS = (
ROOT_PATH + '/app.py',
)
# Scripts after generation completed
FINISH_SCRIPTS = (
ROOT_PATH + '/finish.py',
)
# FILTERS = ROOT_PATH + '/filters.py'
GLOBALS = ROOT_PATH + '/lib/functions.py'
# Process Core cnt
PROCESSES = 20
BASIC_AUTH_KEY = security.BASIC_AUTH_KEY
# ATOMIC_PAGEGROUP = True