From 89ff1621f840d12456fb3ffc3308a47ffeec4320 Mon Sep 17 00:00:00 2001 From: Miguel Grinberg Date: Sun, 14 Apr 2013 23:13:17 -0700 Subject: [PATCH] Linux hosting --- app/__init__.py | 2 +- app/templates/base.html | 12 ++++++------ config.py | 7 +++++-- killpython | 1 + runp-mysql.fcgi | 10 ++++++++++ runp-sqlite.fcgi | 6 ++++++ setup.py | 2 ++ 7 files changed, 31 insertions(+), 9 deletions(-) create mode 100755 killpython create mode 100755 runp-mysql.fcgi create mode 100755 runp-sqlite.fcgi diff --git a/app/__init__.py b/app/__init__.py index 99ff54e..c9c9cb2 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -19,7 +19,7 @@ oid = OpenID(app, os.path.join(basedir, 'tmp')) mail = Mail(app) babel = Babel(app) -if not app.debug: +if not app.debug and MAIL_SERVER != '': import logging from logging.handlers import SMTPHandler credentials = None diff --git a/app/templates/base.html b/app/templates/base.html index 358c0e3..de590fc 100644 --- a/app/templates/base.html +++ b/app/templates/base.html @@ -6,13 +6,13 @@ {% else %} microblog {% endif %} - - + + - - + + {% if g.locale != 'en' %} - + {% endif %}