tags:

views:

54

answers:

2

I have a mini project that I'd like to start on port 2000. How do I do this?

Also, how would I set up the project with an existing database?

What Django books did you find helpful?

+4  A: 

When you're in the directory you want to be in...

python ./manager.py runserver 2000

You can sync a given database by adding the name to DATABASE_NAME in settings.py, as well as doing a python manager.py syncdb in the terminal.

Also, a quick google would have led you to the Django Book. I don't understand how you haven't come across this yet?

day_trader
This is for development only of course :)
Frozenskys
Aye! Though I think my answer suffices :)
day_trader
+2  A: 

Use ./manage.py inspectdb to create a draft of your models.py file to use with the DB. You will have to separate it out into the appropriate apps, and update field types and relationships as necessary.

jcdyer
the other way :)
panchicore