- Create the project. This one is easy. CD into the directory that will hold the directory for your code. Then type in:
django-admin.py startproject - Edit settings.py All of the configuration settings are in settings.py. All of the ones at the top that start with DATABASE are the ones you want to touch. The biggie is DATABASE_ENGINE. Set it to this, for mysql:
DATABASE_ENGINE = 'mysql'
At the bottom, is INSTALLED_APPS. This setting includes (or removes) extra applications for your project. Take out anything you don't need. - Test the db. To test the database, run the syncdb that creates the database from the models.py and settings:
python manage.py syncdb - Test the server. If that worked, test the included server:
python manage.py runserver
Yay! It works!