My first steps at Django
sudo apt-get install libapache2-mod-python python-django
sudo apt-get install mysql-server python-mysqldb
sudo /etc/init.d/mysql start (the previous line upgraded mysql and didn't restart it)
cd /home/username_here
django-admin startproject mysite
cd mysite
./manage.py runserver
[I opened up a putty session forwarding my localport 7145 over to localhost:8000 on the ubuntu box]
in firefox: http://localhost:7145
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment