how to display image on a template

2013-07-12 Thread sah
hi , here is my view for getting image : I am using a stringIO buffer for temporary storage of the image file and then rendering it to the html . def my_image(request): from matplotlib import pyplot as plt buffer = cStringIO.StringIO() width = 0.5 males = int(Mice.object

problem with deploying django using mod wsgi

2013-08-07 Thread sah
Hello , I am trying to deploy django using apache and mod_wsgi but not able to , can anyone help me on this : httpd.conf -- LoadModule wsgi_module modules/mod_wsgi.so WSGIScriptAlias /mice /home/getMice/webproject/wsgi.wsgi Order deny,allow Allow from all AddHandler ws

Re: problem with deploying django using mod wsgi

2013-08-07 Thread sah
Though i remove those two line it did not change anything. It works the same as before, i get the search_form page and if i give some value for search, I get a 404 error page saying that the page is not available in the server. On Wednesday, August 7, 2013 5:25:01 PM UTC-4, sah wrote

Re: problem with deploying django using mod wsgi

2013-08-08 Thread sah
-4, sah wrote: > > Hello , I am trying to deploy django using apache and mod_wsgi but not > able to , can anyone help me on this : > > httpd.conf > -- > LoadModule wsgi_module modules/mod_wsgi.so > > WSGIScriptAlias /mice /home/getMice/webproject/wsgi.wsgi >