~fabrixxm/lesanaweb

afe274068cc70b34529b53c8965b819a6ae41a93 — fabrixxm 1 year, 1 month ago 169e881
Move settings out of app.py
3 files changed, 8 insertions(+), 1 deletions(-)

M .gitignore
M app.py
A sttings.py.dist
M .gitignore => .gitignore +2 -0
@@ 143,3 143,5 @@ dmypy.json
.prof

# End of https://www.toptal.com/developers/gitignore/api/python

settings.py

M app.py => app.py +4 -1
@@ 3,9 3,12 @@ from flask import render_template, request
from lesana.collection import Collection


COLLECTIONPATH = "/home/fabio/progetti/glcomo/bookmarks"
COLLECTIONPATH = None
PAGESIZE = 20

from settings import *


app = Flask("linkopedia")
collection = Collection(COLLECTIONPATH)


A sttings.py.dist => sttings.py.dist +2 -0
@@ 0,0 1,2 @@
COLLECTIONPATH = "./bookmarks"
PAGESIZE = 20