url 404 405 not found

25 views
Skip to first unread message

Lucas

unread,
Apr 26, 2026, 8:57:27 AM (8 days ago) Apr 26
to py4web
so weird,

I've added dozens of controllers *.py files across 9 different apps in py4web, using version: 1.20260403.2.  this morning I added another conversions.py under the controllers directory, added "from .controllers import conversions" to __init__.py under the app, and added the code to conversions.py:

```
from yatl.helpers import *
from py4web import URL, abort, action, redirect, request

action("xyz123")
def xyz123():
    return BODY('dman ok')
```

since this is my development computer and it is a macosx computer, I simply run "py4web run -H '0.0.0.0' /Users/sjlukacs/python/bin/apps/" to start the server and it starts without error.

when I try to access "http://localhost:8000/instruct/xyz123" through safari or chrome, it returns a red 404 NOT FOUND.

I've tried dozens of things, including watching file attributes, random file, action, and def names to ensure nothing reserved, etc.,  to get it to access but it seems that py4web just will not add that action to its url list.

what am I missing?  Lucas



jonatha...@whatho.net

unread,
Apr 26, 2026, 2:07:30 PM (7 days ago) Apr 26
to py4web
@action ??

Lucas

unread,
Apr 26, 2026, 6:05:01 PM (7 days ago) Apr 26
to py4web
oh brother, hand to forehead.  I'm a very dumb person.  the first time I missed that one character.  thank you.  
Reply all
Reply to author
Forward
0 new messages