Super excited to see py4web docs up. It's been too long!
# RUN PY4WEB
$ py4web version
1.20200517.1
$ cd ~/code/py4web
$ mkdir apps/myapp
$ echo '' > apps/myapp/__init__.py
$ py4web run
Logged in; password worked, dashboard showed what it should.
# CHECK FOR FILES
Checked for myapp in the dashboard. It's there. The static dir is there with hello.txt
# TRY TO VIEW APP
Got the big orange/red screen with 404 NOT FOUND
I think it now needs a fixture and that perhaps it wasn't required when the tutorial was written. I'm imagining an__init__.py with something not exactly like this:
from py4web import action
@action("index")
def index():
return static/hello.txt # <-- Don't know how to create an action that says "load the file static/hello.txt
What's the best fixture to show the contents of a static file?