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

Requesting /docs gives 404 in examples #31

Open
jordansamuels opened this issue Jul 14, 2014 · 1 comment
Open

Requesting /docs gives 404 in examples #31

jordansamuels opened this issue Jul 14, 2014 · 1 comment

Comments

@jordansamuels
Copy link

It appear that commit 82f4ff9 broke /docs in the examples, because the path to static/ is no longer valid (since it's in a parent directory).

Repro:

  1. Clone 82f4ff9

  2. Run the example

    $ PYTHONPATH=. python examples/basic.py

  3. /docs successfully redirects

    $ curl --head http://localhost:5000/docs
    HTTP/1.0 302 FOUND
    Content-Type: text/html; charset=utf-8
    Content-Length: 241
    Location: http://localhost:5000/static/docs.html
    Server: Werkzeug/0.9.6 Python/2.7.5
    Date: Mon, 14 Jul 2014 15:08:32 GMT

  4. /static/docs.html not found:

    $ curl --head http://localhost:5000/static/docs.html
    HTTP/1.0 404 NOT FOUND
    Content-Type: text/html
    Content-Length: 233
    Server: Werkzeug/0.9.6 Python/2.7.5
    Date: Mon, 14 Jul 2014 15:08:36 GMT

One simple way to fix this is to add a symlink to ..\static in the examples directory. I will issue a pull request for this, but I'm happy for someone else to fix it a different way.

@rantav
Copy link
Owner

rantav commented Jul 15, 2014

Thanks, fixed d5bcd57

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