Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Examples in tutorial raised "URL 'xxxx' not found" error. #12

Open
mission-liao opened this issue Jul 16, 2013 · 0 comments
Open

Examples in tutorial raised "URL 'xxxx' not found" error. #12

mission-liao opened this issue Jul 16, 2013 · 0 comments

Comments

@mission-liao
Copy link

I follow this tutorial http://jacek99.github.io/corepost/doc/build/html/url_routing.html
and got stucked with "URL not found" error.

Finally I figure out what's wrong.
If I replace this line:

app = RESTResource((RESTService,))

with

app = RESTResource((RESTService(),))

then thins going well, and this is because corepost.routing.RequestRouter.regisgerRouters looking for methods in "class.dict__" but not in "dict", which means if we pass a class-object but not an instance, this function "__regusterRouters" would find nothing.

Suggest to refine this tutorial or if I misunderstand anything, please feel free to let me know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant