1đź‘Ť
âś…
In the handler, you’re getting the ID from self.request.get('mentor_id')
. However, in the template you’ve set the image URL to imageit?key=whatever
– so the parameter is “key” not “mentor_id”. Choose one or the other.
👤Daniel Roseman
0đź‘Ť
Finally figured it out.
I’m using a subdomain, and wasn’t setting up that route, only /img coming off of the www root.
I also wasn’t using the URL correctly and the 15th pass of https://developers.google.com/appengine/articles/python/serving_dynamic_images finally answered my problem.
👤MrDunham
- [Answer]-How to get actual value from HttpResponse in view?
- [Answer]-Django set GET parameter based on selection
- [Answer]-Django – storing sortable search results
- [Answer]-Django – Limit User Queries
Source:stackexchange.com