Content

Django on Leopard

10 October 2008 by bhalle
Filed under how-to

Some quick instructions for getting up and running with django on leopard …

Checkout Django
svn co http://code.djangoproject.com/svn/django/trunk django_trunk

Tell Python where Django is
sudo nano /Library/Python/2.5/site-packages/django.pth
Place your path into the .pth file
/Users/enter-your-path-here/django_trunk

Tell your system where Django Admin is
sudo ln -s /Users/enter-your-path-here/django_trunk/django/bin/django-admin.py django-admin.py

Download Easy Install … go into directory where you downloaded .egg
sudo sh setuptools-0.6c9-py2.5.egg

Download Package for MySQL
unzip it and go into directory …
easy_install .
(don’t forget the .)

Note: I already added mysql to my path during mysql install.

Now make sure it all works
python
you will enter the interpreter …

Verify that MySQLdb is correctly installed:
import MySQLdb
MySQLdb.apilevel
should print out : ‘2.0′

Now, verify that Django is working:
import django
print django.VERSION
should print out : (0, 97, ‘pre’) … or something similar …

By running exit() get out of the python shell, and verify that django-admin.py is in your path:
django-admin.py
should print out : Type ‘django-admin.py help’ for usage.

I think thats it … short and sweet … here are the references I used:
How to install Django with MySQL on Mac OS X
Notes: installing Django / Python / Mysql on OS X

.........
Tags » » 

Scroll up

Leave a comment on
'Django on Leopard':




XHTML:You can use these tags:<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>