Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
39 lines (28 sloc) 819 Bytes
import os
import logging
import flask
import publ
import publ.image
APP_PATH = os.path.dirname(os.path.abspath(__file__))
config = {
# Leave this off to do an in-memory database
'database_config': {
'provider': 'sqlite',
'filename': os.path.join(APP_PATH, 'index.db')
'content_folder': 'tests/content',
'template_folder': 'tests/templates',
'static_folder': 'tests/static',
'cache': {
app = publ.publ(__name__, config)
def favicon():
logo = publ.image.get_image('rawr.jpg', ['tests/content'])
img, _ = logo.get_rendition(format='ico')
return flask.redirect(img)
if __name__ == "__main__":'PORT', 5000))
You can’t perform that action at this time.