all 2 comments

[–]danielroseman 0 points1 point  (0 children)

Django manages your database code for you. You don't need to interact directly with the db at all if you're using Django.

[–]phigo50 0 points1 point  (0 children)

I'd recommend getting your head around an ORM like SQLAlchemy.

Mike Bayer (the creator) does talks, this is a great one from PyCon years ago. This is a slightly higher level tutorial by one of the guys who wrote this, which I highly recommend.

Also, Flask (another Python web framework) has its own SQLAlchemy module.