Wednesday, December 2, 2009

Memo: how to run the first django project

cd
mkdir django
cd django
django-admin.py startproject mysite
cd mysite
python manage.py runserver

These commands above surely works. After issuing these commands, simply access to the url "http://localhost:8000" and check the response.

To change the port number of the web server, try following commands:

python manage.py runserver 8080
python manage.py runserver 0.0.0.0:8000