Re: Is it possible to output a graph from Matplotlib into Django like this?

2011-04-13 Thread nai
ce different responses based on the parameter. > Eg: in an other view i have i can pass lat and long coords as params > and it would put a dot on the map based on where that lat/long points > to. > > > > > > > > On Tue, Apr 12, 2011 at 2:19 PM, nai wrote: > >

django-admin.py not working?

2011-01-15 Thread nai
tions/4696831/help-with-django-installation Any help would be much appreciated. Nai -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send e

Re: django-admin.py not working?

2011-01-15 Thread nai
ULLPATH\django-admin.py startproject webapp1 > > I'm not sure why it behaves like this. > > On 15 January 2011 18:00, nai wrote: > > > > > > > > > I'm running Windows Vista and Im trying to create a project. > > > When I try to run FULLPATH\

Need help with Django tutorial

2011-01-16 Thread nai
I posted my question in Stackoverflow because its easier to see the code blocks. Basically, I am having problems trying to get my polls template from the Django tutorial working properly. Please have a look. Thanks. The link is here: http://stackoverflow.com/questions/4705962/need-help-with-dja

Django app and Amazon AWS (beginner)

2011-03-09 Thread nai
Hi guys, I've been lurking on the forums and groups for a while now but I've recently ran into some problems I couldn't figure out whilst learning to code. Basically, I have a simple working webapp on my local machine. I've signed up for the free Amazon tier and have been messing around with it s

Re: Django app and Amazon AWS (beginner)

2011-03-09 Thread nai
> -H > > > > > > > > On Wed, Mar 9, 2011 at 9:46 PM, nai wrote: > > Hi guys, > > > I've been lurking on the forums and groups for a while now but I've > > recently ran into some problems I couldn't figure out whilst learning >

Re: Django app and Amazon AWS (beginner)

2011-03-09 Thread nai
ke another stab and explain how apache and mod_wsgi fits in with the deployment. On Mar 10, 11:27 am, nai wrote: > Ok, this is where I start running into the limitations of my > knowledge. Does installing a webserver like Apache 'persist' the > website then? Is that what I sh

Error: No module named mysql.base when trying to sync.db

2011-04-01 Thread nai
I posted the same question on stackoverflow here: http://stackoverflow.com/questions/5509755/problem-with-django-syncdb-on-amazon-ec2 Reproduced Hi all, I'm trying to deploy my project on my EC2 instance. When I run python manage.py validate I get this error Error: No module named mysql.base . I

Is it possible to output a graph from Matplotlib into Django like this?

2011-04-11 Thread nai
This is the give example from Matplotlib for Django: def simple(request): import random from matplotlib.backends.backend_agg import FigureCanvasAgg as FigureCanvas from matplotlib.figure import Figure from matplotlib.dates import DateFormatter fig=Figure() ax=fig.add_subp

Re: Is it possible to output a graph from Matplotlib into Django like this?

2011-04-11 Thread nai
I will try to the 2 views method and see how I get on but in it would be great if you could answer my questions too! Why does it go against best practices? How would one go about doing it anyway? On Apr 11, 6:39 pm, Xavier Ordoquy wrote: > Le 11 avr. 2011 à 12:21, nai a éc

Re: Is it possible to output a graph from Matplotlib into Django like this?

2011-04-11 Thread nai
One reason why I don't quite like the idea is because I am writing a reporting webapp and there are many different graphs that can generated. Needing to write 2 views for 1 type of graph can get pretty tedious! On Apr 11, 6:39 pm, Xavier Ordoquy wrote: > Le 11 avr. 2011 à 12:21, nai

Re: Is it possible to output a graph from Matplotlib into Django like this?

2011-04-11 Thread nai
Actually, could you illustrate how you would go about using 2 views as well? Thanks! On Apr 11, 6:39 pm, Xavier Ordoquy wrote: > Le 11 avr. 2011 à 12:21, nai a écrit : > > > > > > > > > > > This is the give example from Matplotlib for Django: > > &

Re: Is it possible to output a graph from Matplotlib into Django like this?

2011-04-11 Thread nai
(response, "GIF") > return response > > There is no 'best practice for this' Some people i know use flash. > However dynamically generated images is good eg: no browser pluggins > > cheers > > sam_w > > > > > > > > On Tue, Apr 12, 2