Mar 16
Switch between django trunk and stable versions
This is snippet that I use to switch development with Django between 1.0 and trunk versions:
#!/bin/sh
rm /Library/Python/2.5/site-packages/django
if [ "$1" = "" ]; then
echo "Django 1.0"
ln -s LOCATION_OF_SOURCE_CODE/django-1.0/django /Library/Python/2.5/site-packages/django
else
echo "Django trunk"
ln -s LOCATION_OF_SOURCE_CODE/django-trunk/django /Library/Python/2.5/site-packages/django
fi$ ~/djchange.sh
Django 1.0
$ django-admin.py --version
1.0-final-SVN-8977
$ ~/djchange.sh trunk
Django trunk
$ django-admin.py --version
1.1 alpha 1 SVN-10065
Also check that django-admin.py is symbolic link to /Library/Python/2.5/site-packages/django/bin/django-admin.py
I am Bojan Mihelac and this blog is dedicated to share code, thoughts, tools and advices I came up with while working at 
blog comments powered by Disqus