[Tutor] build a really simple "json" api from a db
picioslug at gmail.com
Sun Jul 29 21:36:56 CEST 2007
The beginning idea was to build a json API myself. Since I need only
to generate json from a db, maybe Django is too much. I'm a Django
beginner. I don't know Turbogears.
I've not found anything like: "how to build a json api".
Maybe MySqldb+simplejson is the enough?
Is It more simple to learn how to use Django to create a json api?
2007/7/28, Alan Gauld <alan.gauld at btinternet.com>:
> "Picio" <picioslug at gmail.com> wrote
> > Hello, I'd like to know the necessary steps to build a json api for
> > two table on my db.
> Since you seem to be using Django are you sure that isn't built in?
> I use Turbo Gears and JSON is a standard feature turned on by
> an option in a method. Django is quite similar to TG in most respects
> so I'll be surprised if it can't do JSON directly.
> > I've seen this snippet on the djangosnippet site.
> > http://www.djangosnippets.org/snippets/154/
> > Is It the right way.
> If its on the Django web site and you are using Django then
> probably! :-)
> It certainly looks like a recommendation to me.
> Alan Gauld
> Author of the Learn to Program web site
> Tutor maillist - Tutor at python.org
http://picio.gotdns.com ...Il mio blog su NSLU2
More information about the Tutor