|
Install Django
Installing Django in Ubuntu is quite simple:
sudo apt-get install python-django
Django is installed in the path /var/lib/python-support/python2.5/django
Since I will be using MySQL, I needed to install another package which would let Python connect to it.
sudo apt-get install python-mysqldb
Start New Project
While trying to create a new project, run the following command:
cd /home/me/
django-admin startproject newprojectname
Although the documentation says to use django-admin.py, in Ubuntu Gutsy, you should not use the .py extension. Instead, just use django-admin. The source of this information is a post on Ubuntu Forums: Path to Django Installation.
|
|
Read more...
|
|
|
Google docs is a great resource to back up all my mysql databases using mysqldump from this python script that runs the local machine. Google docs has an excellent API which can be viewed here , at the moment, it is only available for python and Java, no PHP yet :/ Additionally you will need to download the google gdata client, from here I ran this code on a linux server running Ubuntu 11.2 with Python ver 2.7.1+
|
|
Last Updated ( Wednesday, 22 June 2011 )
|
|
Read more...
|
|
|