On 17-08-11 21:32, smartaz wrote:
if I call this view for an url: (r $' ^plot / image.png ', 'contact ')
which comes from a form where I put
<form action = "contact / image.png " name = " SForm " method =
"Post"> {% csrf_token %}
the graph is correctly displayed as picture in a page html
http: // 127.0.0.1:8000 / graphs / contact / image.png
That url doesn't seem to match the url you gave above. That makes it
hard to guess what goes wrong.
If I pass by another view to show picture in a template Django,
I have an Internal Server Error 500 systematically
So: what is the error? Getting an error 500 can mean anything from "disk
full" to "python syntax error".
Perhaps there's a difference that your first example is a POST to that
image? And <img src=...> means a GET request?
by putting in the
template a simple tag<img src = "Image.png"> in the template
That src attribute again doesn't seem to match your original url.
Reinout
--
Reinout van Rees http://reinout.vanrees.org/
[email protected] http://www.nelen-schuurmans.nl/
"If you're not sure what to do, make something. -- Paul Graham"
--
You received this message because you are subscribed to the Google Groups "Django
users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.