Skip to content

Commit

Permalink
Add note about absolute files in static
Browse files Browse the repository at this point in the history
  • Loading branch information
tiangolo committed Feb 14, 2016
1 parent 3113a3e commit cc1acb3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,8 @@ docker run -d --name mycontainer -p 80:80 myimage

* You should be able to also go to, for example: <http://192.168.99.100/hello> to see a "Hello World" page served by Flask.

**Note**: As your `index.html` file will be served from `/` and from `/static/index.html`, the links to other files in the `static` directory from your `index.html` file should be absolute, as in `/static/css/styles.css` instead of relative as in `./css/styles.css`.


## Technical details

Expand Down

0 comments on commit cc1acb3

Please sign in to comment.