import simplejson
import tornado.httpserver
import tornado.locale
-import tornado.options
import tornado.web
+from tornado.options import options
+
import backend
from handlers import *
def __init__(self):
settings = dict(
cookie_secret = "aXBmaXJlY29va2llc2VjcmV0Cg==",
- debug = True,
+ debug = options.debug,
gzip = True,
login_url = "/login",
template_path = os.path.join(BASEDIR, "templates"),
#!/usr/bin/python
-import tornado.options
-tornado.options.parse_command_line()
+from tornado.options import define, options, parse_command_line
+
+# Command line options
+define("debug", default=False, help="Run in debug mode", type=bool)
+parse_command_line()
from accounts import Accounts
from banners import Banners