Hello all,
As usual, there are multiple ways of getting a database software installed on your development machine. First of all, there are many different types of database software available in the market - open source or commercial. Which database software to use is - as usual - subject to a lot of debates and depends also on the task-at-hand.
For the purpose of session #2 for LadyPy workshop, we will focus only on using either MySQL or PostgreSQL relational databases.
My personal recommendation is PostgreSQL. But there are others who would prefer to use MySQL so if that's your weapon of choice, feel free!
Here's the step-by-step for Mac users who have chosen to use MacPorts and chosen to install PostgreSQL on your local development machine. I am too lazy to type everything all over again because I wrote this some time back in April. So I am just going to just paste the link to the step-by-step here -
http://od-eon.com/blogs/calvin/macports-and-postgresql/ (Please
ignore the section on "
Reinstall ports" as that pertains to my upgrade from PostgreSQL 8.3 to 9.0. Chances are, this is the first time you are doing a PostgreSQL 9.0 or 9.1 installation on your machine so you will not need my fix relating to "
Reinstall ports".)
Other facilitators will contribute step-by-step for other ways of getting your database ready.
And to summarize what we will be focusing on for session #2:-(0) Before our session #2 on Saturday, prepare your database of choice (with help from facilitators in this topic thread. feel free to ask.)
(1) A recap on what we learnt last weeks and Q&A - limited edition stickers from Google for participants who get the answers right!
(2) Prettify your django templates by serving media - css file, js file - on your development site (i.e. "
http://127.0.0.1:8000/" or "
http://localhost:8000/")
(3) Django models.py and how you create your newly designed database tables
(4) Django ORMs: Retrieving and updating/inserting data from and to your database
And here's a diagram depicting our focus for session #2...