pytorn / pytorn

:cyclone: Tornado MVC framework, fully fledged
Apache License 2.0
17 stars 5 forks source link

feat: add autoreload and debug from config and app init #38

Closed shubhodeep9 closed 4 years ago

shubhodeep9 commented 4 years ago

Now user can define autoreload and debug mode in two ways.

  1. define in app.py while initialising app for example:
    app = Application()
    app.run(routes = Routes.web.route, autoreload=True, debug=True)
  2. Else in config.yml file
    autoreload: True
    debug: True

Application initialisation will be given priority if defined.