[EMAIL PROTECTED] wrote:
> I put this in my .bash_login:
> 
> export PYTHONPATH="/code/django91_src/django"
> export PYTHONBIN="/code/django91_src/django/bin"
> export
> PATH="/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:/opt/local/bin:/opt/local/sbin:$PYTHONBIN:$PATH"

I use a couple bash aliases to quickly switch back and forth between 
django versions.  Note that DJANGO_SETTINGS_MODULE points to the 
settings.py file that is somewhere on my python path.  The following two 
lines are in my ~/.bashrc file:

alias use91='export PYTHONPATH=/path/to/django91;export 
DJANGO_SETTINGS_MODULE=foo.django.settings && 
/path/to/django91/django/bin/django-admin.py runserver'

alias usetrunk='export PYTHONPATH=/path/to/django_trunk;export 
DJANGO_SETTINGS_MODULE=bar.settings && 
/path/to/django_trunk/django/bin/django-admin.py runserver'


When I need to test my Sargasso app, I start the development server from 
a bash shell like this:
$ use91

To test my trunk app, I start the dev server like this:
$ usetrunk

I hope that helps.

Eric.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to