Open flytwokites opened 11 years ago
I was able to get this to work by creating a run_server.py
file outside of the pkg
directory. My directory structure looks like this:
run_server.py
pkg/
+ __init__.py
+ main.py
+ util.py
Here is the code for run_server.py
:
from pkg import main
main.run(host='localhost', port=5000, reloader=True)
structure:
FILE: pkg.main.py
The relative import will be fail because
__package__
is not set. bottle version: 0.11.4