Author: mtredinnick
Date: 2007-02-10 02:55:18 -0600 (Sat, 10 Feb 2007)
New Revision: 4479
Modified:
django/trunk/AUTHORS
django/trunk/docs/contributing.txt
Log:
Fixed #3147 -- documented how to use .pth files for easy switching between
different versions of the code. Thanks to Waylan Limberg for the patch.
Modified: django/trunk/AUTHORS
===================================================================
--- django/trunk/AUTHORS 2007-02-10 08:36:39 UTC (rev 4478)
+++ django/trunk/AUTHORS 2007-02-10 08:55:18 UTC (rev 4479)
@@ -114,6 +114,7 @@
Jeong-Min Lee <[EMAIL PROTECTED]>
Christopher Lenz <http://www.cmlenz.net/>
[EMAIL PROTECTED]
+ Waylan Limberg <[EMAIL PROTECTED]>
limodou
mattmcc
Martin Maney <http://www.chipy.org/Martin_Maney>
Modified: django/trunk/docs/contributing.txt
===================================================================
--- django/trunk/docs/contributing.txt 2007-02-10 08:36:39 UTC (rev 4478)
+++ django/trunk/docs/contributing.txt 2007-02-10 08:55:18 UTC (rev 4479)
@@ -484,6 +484,29 @@
location of the branch's ``django`` package. If you want to switch back, just
change the symlink to point to the old code.
+A third option is to use a `path file`_ (``<something>.pth``) which should
+work on all systems (including MS Windows, which doesn't have symlinks
+available). First, make sure there are no files, directories or symlinks named
+``django`` in your ``site-packages`` directory. Then create a text file named
+``django.pth`` and save it to your ``site-packages`` directory. That file
+should contain a path to your copy of Django on a single line and optional
+comments. Here is an example that points to multiple branches. Just uncomment
+the line for the branch you want to use ('Trunk' in this example) and make
+sure all other lines are commented::
+
+ # Trunk is a svn checkout of:
+ # http://code.djangoproject.com/svn/django/trunk/
+ #
+ /path/to/trunk
+
+ # <branch> is a svn checkout of:
+ # http://code.djangoproject.com/svn/django/branches/<branch>/
+ #
+ #/path/to/<branch>
+
+ # On windows a path may look like this:
+ # C:/path/to/<branch>
+
If you're using Django 0.95 or earlier and installed it using
``python setup.py install``, you'll have a directory called something like
``Django-0.95-py2.4.egg`` instead of ``django``. In this case, edit the file
@@ -491,6 +514,8 @@
file. Then copy the branch's version of the ``django`` directory into
``site-packages``.
+.. _path file: http://docs.python.org/lib/module-site.html
+
Official releases
=================
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" 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-updates?hl=en
-~----------~----~----~----~------~----~------~--~---