tags:

views:

80

answers:

2

Downloaded Django, ran install, now I need to setup a database -- And I'm stuck. How can I do this? Tried following instructions on-site; no good.

Thanks!

+1  A: 

The Django Book is the best place to start. Django is one of the best documented frameworks I have ever used. There should be no shortage of material for you.

The Getting Started chapter specifically has a database section.

Mark Stahler
Thanks. I'll take a look.
konzepz
+1  A: 

I don't see the instructions you followed...

the easiest database to start with is sqlite, all you need to do is put a filename in the DATABASE_NAME setting

so you should have something like this in your settings.py file:

DATABASE_ENGINE = 'sqlite3'
DATABASE_NAME = 'dev.db'

then in the terminal cd into your project root (the folder with manage.py in it) and run:

python manage.py syncdb
Jiaaro
Thanks. Can you instruct me how to set up a MySQL DB? The server is already running, but I can't figure out how to connect the two (python and the DB)
konzepz