Closed viciousstar closed 7 years ago
I fix myself:
mv settings/50applications.conf.example settings/50applications.conf
you should enable you app in the file
modify you_apppath/__init_\.py insert like this from .app_example import init, apps, web_handlers
, so gateone can load your app
modify urlHandler, in example app it should like below:
class ExampleHandler(BaseHandler):
def get(self):
to
class ExampleHandler(BaseHandler):
def get(self, url):
at app_example.py line 462, modify from gateone.core.utils import settings_template
to from gateone.core.configuration import settings_template
I do not know why there is so many bugs, may be this is beacuse python version or tornado version? I use python2.7.6 and tornado4.5.2
I use the official example application, and I set settings as doc:
But the example Application not loaded, and the python file not be compiled to .pyc or .pyo, what is wrong?
you will see the time of app_example.py is older than .pyc and .pyo.
When I access https://myhost/example, not found will be show.