Django uses an ORM - so you don't (usually) need to query the database directly. Why don't you go through the Django tutorial and try it out?
http://docs.djangoproject.com/en/dev/#first-steps Dougal --- Dougal Matthews - @d0ugal http://www.dougalmatthews.com/ 2009/3/31 Dotan Cohen <dotanco...@gmail.com> > > > You might want to look at the Django templating system. It's far more > > powerful and flexible than using a simple PHP script and including other > > files. > > Django wouldn't be overkill - it would make all of the features you > > mentioned really easy as it does them out of the box. Allowing you to > spend > > all your time working on the website itself rather than repeating (or > self > > maintaining) the building blocks. > > I moved over from PHP and haven't looked back. > > Dougal > > > > Actually, I do want to build and maintain the building blocks! That is > my reason for moving the sites to Python, to increase my knowledge of > the language. > > I have tried googling for examples of MySQL database interaction with > Django and with Python, but I couldn't really find anything that would > give me an idea of what I'm getting into. In PHP, I simply connect to > the database, declare UTF-8, then make a query. Each step is done in a > line of code or three. This seems to be in line with both Python and > Django. However, in PHP there are many rich functions for manipulating > the data returned from the query. Python does not seems to have > functions meant for manipulating returned queries, and I could not > find any mention of whether or not Django does. I did find MySQLdb on > the Django site which seems to apply to Python as well, but I'm not > really sure what it helps with. > > -- > Dotan Cohen > > http://what-is-what.com > http://gibberish.co.il > > > > --~--~---------~--~----~------------~-------~--~----~ 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 email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---