config.py.example 1.89 KB
Newer Older
Dave Kliczbor's avatar
Dave Kliczbor committed
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
51
52
53
54
55
56
57
58
59
60
61
62
#### BASIC CONFIGURATION

# Secret key (used for session cookie encryption). Needs to be set to some random string.
# Yes, just smash your keyboard for some random characters. No, don't publish them anywhere.
# Yes, you will need this. If you get random RuntimeErrors, you did not set this.
app_secret = ''

## You will need to use absolute paths!

# Base directory. You need to set this again in schilder.wsgi if you use WSGI.
basedir = '/home/dave/Development/schildergenerator'

# Temp directory for imagemagick/pdflatex work files (needs to be writeable)
tmpdir = '/tmp'

## All following directories derive from basedir, you don't really need to alter them

# Data directory (needs to be writeable)
datadir = basedir + '/data'

# HTML template directory
templatedir = basedir + '/templates'

# TeX template directory
textemplatedir = basedir + '/tex'

# TeX support file directory (all files that might be needed by a tex template)
texsupportdir = textemplatedir + '/support'

# PDF data directory (needs to be writeable)
pdfdir = datadir + '/pdf'

# Image data directory (needs to be writeable)
imagedir = datadir + '/images'

# Upload temp directory (needs to be writeable)
uploaddir = datadir + '/upload'

# allowed image upload file extensions
allowed_extensions = set(['png', 'jpg', 'jpeg', 'gif'])


#### PRINTER OPTIONS

# CUPS printer names
printers = { 
    'Human readable printer description' : 'CUPS-ID-String', 
    'Color Printer in room 1337' : 'Brother_ColorLaserJet_6V', 
    'B/W Printer in room 0' : 'HP_HL-38281', 
}
printserver = 'localhost'

# additional lpr options. Use an empty list if not needed.
lproptions=['-Fa4g', '-N1', '-o fitplot']


#### DEVELOPERS ONLY
# Listening interface and port, usually '127.0.0.1' or '0.0.0.0'
# Only effective if started from command line (instead via webserver/WSGI),
# therefore these options would only be interesting to a developer.
listen = '127.0.0.1'
port = 5432