Commit b1cf86dc authored by Dave Kliczbor's avatar Dave Kliczbor
Browse files

Version used in ZKK15

A web page to quickly create and print signs using a common design.
Especially useful for events.
* python-flask python-genshi python-pythonmagick
* pdflatex latex-beamer
* libapache2-mod-wsgi (if not used in debug mode)
* copy to and edit it to your needs.
* copy schildergen.wsgi.example to schildergen.wsgi and edit it.
Apache Config
See also
LoadModule wsgi_module /usr/lib/apache2/modules/
WSGIRestrictStdout Off
<VirtualHost *:443>
ServerAdmin admin@server.test
DocumentRoot /path/to/schildergen
AddDefaultCharset utf-8
ErrorLog /path/to/log
CustomLog /path/to/log
SSLEngine on
SSLCertificateFile /path/to/
SSLCertificateKeyFile /path/to/
WSGIDaemonProcess schildergen user=www-data group=www-data threads=2
WSGIScriptAlias / /path/to/schildergen.wsgi
<Directory /path/to/schildergen.wsgi>
AllowOverride All
WSGIProcessGroup schildergen
WSGIApplicationGroup %{GLOBAL}
WSGIScriptReloading On
Order deny,allow
Allow from all
* Dave Kliczbor <>
* Lars Beckers <>
* Moritz Holtz <>
* Konstantin Kotenko <>
Image Sources
* USNPS pictograms taken from the Open Icon Library:
# 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'])
# 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']
# Listening interface and port, usually '' or ''
# Only effective if started from command line (instead via webserver/WSGI),
# therefore these options would only be interesting to a developer.
listen = ''
port = 5432
{"headline": "Headline", "text": "Additional text.", "pdfname": "Headline-417648766.schild.pdf", "img": "pictograms-nps-showers.png", "textemplate": "headline-top_arrowup_image-right.tex"}
\ No newline at end of file
{"headline": "Headline", "text": "Additional text.", "pdfname": "Headline1053846357.schild.pdf", "img": "__none", "textemplate": "headline-top_arrowright_text-right.tex"}
\ No newline at end of file
{"headline": "Headline", "text": "Additional text.", "pdfname": "Headline2075177871.schild.pdf", "img": "pictograms-nps-showers.png", "textemplate": "headline-top_arrowup_text-right.tex"}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment