From 8fbf352b6498483c1962c7468060af67db6e6cf5 Mon Sep 17 00:00:00 2001 From: str4d Date: Thu, 20 Dec 2012 04:49:25 +0000 Subject: [PATCH] Rearranged constants and added comments --- i2p2www/__init__.py | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/i2p2www/__init__.py b/i2p2www/__init__.py index a9c4093a..1a42cc44 100644 --- a/i2p2www/__init__.py +++ b/i2p2www/__init__.py @@ -4,21 +4,27 @@ from docutils.core import publish_parts import os.path import os + +########### +# Constants + CURRENT_I2P_VERSION = '0.9.4' CANONICAL_DOMAIN = 'www.i2p2.de' -TEMPLATE_DIR = os.path.join(os.path.dirname(__file__), 'pages') -STATIC_DIR = os.path.join(os.path.dirname(__file__), 'static') - -BLOG_DIR = os.path.join(os.path.dirname(__file__), 'blog') -MEETINGS_DIR = os.path.join(os.path.dirname(__file__), 'meetings/logs') - BLOG_ENTRIES_PER_PAGE = 20 MEETINGS_PER_PAGE = 20 +TEMPLATE_DIR = os.path.join(os.path.dirname(__file__), 'pages') +STATIC_DIR = os.path.join(os.path.dirname(__file__), 'static') +BLOG_DIR = os.path.join(os.path.dirname(__file__), 'blog') +MEETINGS_DIR = os.path.join(os.path.dirname(__file__), 'meetings/logs') MIRRORS_FILE = os.path.join(TEMPLATE_DIR, 'downloads/mirrors') + +################### +# Application setup + app = application = Flask('i2p2www', template_folder=TEMPLATE_DIR, static_url_path='/_static', static_folder=STATIC_DIR) app.debug = bool(os.environ.get('APP_DEBUG', 'False')) babel = Babel(app)