Johnny I don't know what kind of Operating System you are using, but
here is what I do on my Mac and Linux machines...

I create a small script "checkout.sh" that contains the following:

#!/bin/sh
svn co http://code.djangoproject.com/svn/django/trunk/

Make it executable and run it.  You will need to have the subversion
client installed on your computer.  The great thing is that anytime you
wish to update your build, you just rerun the command.  You can put
this anywhere you like.  I usually put it in:

$HOME/projects/python

OK, for the next part, and you only have to do this one time (unless
you upgrade your Python installation):

Go to the site-packages directory in your Python installation and
create a symbolic link to the django directory that you checked out.
Note that when you run that checkout.sh script the directory that you
will see in the same directory as the checkout script is called
"trunk".  So you want a link to the "django" directory that is inside
the trunk directory.

If you installed your original django directly in the site-packages
folder, then remove it first, before you create the symbolic link.

If you are not sure where the site-packages folder is located on your
computer, just fire up python and do this:

import sys
for p in sys.path:
   if "site-packages" in p: print p

On my make that directory is located here:

/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages

On my Linux box it is located here:

/usr/lib/python2.4/site-packages

Now anytime you run python you can import django with no problems.
Anytime you want to bring your copy of django up to the latest trunk,
just rerun the checkout.sh command.  The next time you run python it
will see that updated copy.

--gordon


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

Reply via email to