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

there is a default index page will be better #3

Closed
jizhouli opened this issue Mar 18, 2016 · 0 comments
Closed

there is a default index page will be better #3

jizhouli opened this issue Mar 18, 2016 · 0 comments

Comments

@jizhouli
Copy link
Contributor

I run tornado successfully, but when i visit root path of local host

http://localhost:8000/

I get following response

Traceback (most recent call last):
File "/home/guokr/.virtualenvs/test/local/lib/python2.7/site-packages/tornado/web.py", line 1422, in _execute
result = self.prepare()
File "/home/guokr/.virtualenvs/test/local/lib/python2.7/site-packages/tornado/web.py", line 2149, in prepare
raise HTTPError(self._status_code)
HTTPError: HTTP 404: Not Found

it`s ok because there is no handler mapped with root path, I think add a default index page will be better.

ROUTES = { 'first_proj':
[(r'/statinfo', statinfo_handler.StatInfoHandler),
],
}

jizhouli added a commit to jizhouli/mownfish that referenced this issue Mar 18, 2016
jizhouli added a commit to jizhouli/mownfish that referenced this issue Mar 18, 2016
Ethan-Zhang added a commit that referenced this issue Mar 18, 2016
Modify: #3 add index page in handlers and handlers in templates

thanx to @jizhouli
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

2 participants