@@ -42,6 +42,7 @@ Following environment variables can be set:
|
||||
* ``TRYTOND_COROUTINE``: Use coroutine for concurrency.
|
||||
* ``TRYTOND_DATABASE_NAMES``: A list of database names in CSV format, using
|
||||
python default dialect.
|
||||
* ``TRYTOND_DEV``: A boolean to enable development mode.
|
||||
|
||||
.. warning:: You must manage to serve the static files from the web root.
|
||||
|
||||
|
||||
@@ -75,6 +75,7 @@ def get_parser():
|
||||
parser.add_argument("-v", "--verbose", action='count',
|
||||
dest="verbose", default=0, help="increase verbosity")
|
||||
parser.add_argument('--dev', dest='dev', action='store_true',
|
||||
default=bool(int(os.getenv('TRYTOND_DEV', 0))),
|
||||
help='enable development mode')
|
||||
|
||||
logging_config = os.environ.get('TRYTOND_LOGGING_CONFIG')
|
||||
|
||||
@@ -70,7 +70,7 @@ class TrytondWSGI(object):
|
||||
})
|
||||
self.protocols = [JSONProtocol, XMLProtocol]
|
||||
self.error_handlers = []
|
||||
self.dev = False
|
||||
self.dev = bool(int(os.getenv('TRYTOND_DEV', 0)))
|
||||
|
||||
def route(self, string, methods=None, defaults=None):
|
||||
def decorator(func):
|
||||
|
||||
Reference in New Issue
Block a user