Reputation: 11
I am trying to add a terms of use and privacy page to the google app engine boilerplate.
I can't figure out how to add a link on the footer to a new page; where I can paste in the terms and privacy text.
I tried to make a download link to a privacy.txt file (placed txt file on boilerplate/static/img) and couldn't get that to work either, I think I needed to add the link to the routes.py file but as someone new I can't get it to work. Any help with this would be much appreciated thanks!
Upvotes: 1
Views: 188
Reputation: 11706
Have a look at your app yaml. There you find the answer why your .txt file will not be served from the static/img folder.
With a small change it can be served from your static folder:
- url: /(privacy\.txt|robots\.txt|humans\.txt|crossdomain\.xml)
static_files: static/\1
upload: static/(privacy\.txt|robots\.txt|humans\.txt|crossdomain\.xml)
Or create your own static folder for serving txt files. See the img example in your app.yaml
Upvotes: 1