Re: Best practices: database connection over SSL?

2009-02-03 Thread Jeff Hammerbacher
Thanks James, that's just what I was looking for. On Tue, Feb 3, 2009 at 7:30 PM, James Bennett <ubernost...@gmail.com> wrote: > > On Tue, Feb 3, 2009 at 9:22 PM, Jeff Hammerbacher <ham...@cloudera.com> > wrote: > > I could modify the call to Database.connect() in &

Best practices: database connection over SSL?

2009-02-03 Thread Jeff Hammerbacher
Hey, I'd like to ensure that all communications between my Django app and its database occur over SSL. I'm using MySQL as a backend, and have configured the server with SSL support. Given that Django uses MySQLdb as its MySQL client, I know that I can get an encrypted connection with:

Re: charts in django

2009-01-29 Thread Jeff Hammerbacher
I've employed flot (http://code.google.com/p/flot/) with some success. It's pure javascript and requires jquery. On Thu, Jan 29, 2009 at 7:39 PM, Nick Lo wrote: > > > I need to generate some line charts and bar graphs from django. I > > recall seeing a very

Re: File as data backend for model

2009-01-27 Thread Jeff Hammerbacher
Hey Matthias, To use Django's model object for this task, you will need to implement a custom manager for your file's structure; you can see some basic documentation at http://docs.djangoproject.com/en/dev/topics/db/managers/#topics-db-managers. It should be noted that Django's ORM is not well

Re: Creating test databases. Nose framework

2009-01-27 Thread Jeff Hammerbacher
Hey Oleg, To load some sample data for your tests, see Django's documentation on fixtures: http://docs.djangoproject.com/en/dev/topics/testing/#fixture-loading. Later, Jeff On Tue, Jan 27, 2009 at 1:05 PM, Karen Tracey wrote: > On Tue, Jan 27, 2009 at 3:51 PM, Oleg Oltar

Re: drawing diagrams in django?

2009-01-10 Thread Jeff Hammerbacher
Hey Alistair, For static image generation, I've used pygraphviz ( http://networkx.lanl.gov/pygraphviz/), a Python interface to AT's graphviz library. Regards, Jeff On Sat, Jan 10, 2009 at 12:41 PM, Alistair Marshall < runninga...@googlemail.com> wrote: > > hi folks, > > I am currently trying

Re: '.schema' is not recognized as an internal or external command, operable program or batch file

2008-12-28 Thread Jeff Hammerbacher
Hey, .schema is a command for the sqlite3 shell. If you have sqlite3 installed and have set DATABASE_ENGINE to sqlite3, type "sqlite3 " at your shell. is file name specified by DATABASE_NAME in settings.py. You should be able to issue the ".schema" command successfully from there. Regards,

Putting external web service accesses into models.py?

2008-12-24 Thread Jeff Hammerbacher
Hey, I'm building a web applications that pulls all of its data from an external web service rather than from a managed database. The documentation for the model layer in Django seems to assume you're retrieving application information from a database. Can anyone point me to a resource that