Django

Code

Changeset 4479

Show
Ignore:
Timestamp:
02/10/07 02:55:18 (2 years ago)
Author:
mtredinnick
Message:

Fixed #3147 -- documented how to use .pth files for easy switching between
different versions of the code. Thanks to Waylan Limberg for the patch.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/AUTHORS

    r4478 r4479  
    115115    Christopher Lenz <http://www.cmlenz.net/> 
    116116    lerouxb@gmail.com 
     117    Waylan Limberg <waylan@gmail.com> 
    117118    limodou 
    118119    mattmcc 
  • django/trunk/docs/contributing.txt

    r4421 r4479  
    485485change the symlink to point to the old code. 
    486486 
     487A third option is to use a `path file`_ (``<something>.pth``) which should 
     488work on all systems (including MS Windows, which doesn't have symlinks 
     489available). First, make sure there are no files, directories or symlinks named 
     490``django`` in your ``site-packages`` directory. Then create a text file named 
     491``django.pth`` and save it to your ``site-packages`` directory. That file 
     492should contain a path to your copy of Django on a single line and optional 
     493comments. Here is an example that points to multiple branches. Just uncomment 
     494the line for the branch you want to use ('Trunk' in this example) and make 
     495sure all other lines are commented:: 
     496 
     497    # Trunk is a svn checkout of: 
     498    #   http://code.djangoproject.com/svn/django/trunk/ 
     499    # 
     500    /path/to/trunk 
     501     
     502    # <branch> is a svn checkout of: 
     503    #   http://code.djangoproject.com/svn/django/branches/<branch>/ 
     504    # 
     505    #/path/to/<branch> 
     506     
     507    # On windows a path may look like this: 
     508    # C:/path/to/<branch> 
     509 
    487510If you're using Django 0.95 or earlier and installed it using 
    488511``python setup.py install``, you'll have a directory called something like 
     
    491514file. Then copy the branch's version of the ``django`` directory into 
    492515``site-packages``. 
     516 
     517.. _path file: http://docs.python.org/lib/module-site.html 
    493518 
    494519Official releases