Changes between Version 1 and Version 2 of MultipleVersionsWithFCGI


Ignore:
Timestamp:
07/23/2006 07:15:22 PM (9 years ago)
Author:
SmileyChris
Comment:

Code formatting

Legend:

Unmodified
Added
Removed
Modified
  • MultipleVersionsWithFCGI

    v1 v2  
    33 After some time I've managed to be able to run Django 0.91 and and the SVN version together on Dreamhost. I had a few projects done in 0.91 and I couldn't simply "svn update" the django_src directory.I've followed Dreamhost's wiki instruction to install Django so the directory names are from there.
    44
    5 - Create a directory for 0.91:
     5Create a directory for 0.91:
    66
     7{{{
    78mkdir $HOME/django_091/
     9}}}
    810
    9 - Copy django_src to django_091 (or grab a 0.91 copy and put there):
     11Copy django_src to django_091 (or grab a 0.91 copy and put there):
    1012
     13{{{
    1114cp -r django_src/* django_091
     15}}}
    1216
    13 - Edit .bash_profile to accept the two Django dirs (don't know if it's really needed but I did it :p)
     17Edit `.bash_profile` to accept the two Django dirs (don't know if it's really needed but I did it :p)
    1418
     19{{{
    1520export PATH=$PATH:$HOME/django_src/django/bin:$HOME/django_091/django/bin
    1621export PYTHONPATH=$PYTHONPATH:$HOME/django_src/:$HOME/django_091:$HOME/django_projects
     22}}}
    1723
    18 - Edit all the django.fcgi files you have, replacing:
     24Edit all the `django.fcgi` files you have, replacing:
    1925
     26{{{
     27#!python
    2028sys.path += !['/home/inerte/django_src']
     29}}}
    2130
    2231with:
    2332
     33{{{
     34#!python
    2435sys.path += !['/home/inerte/django_091']
     36}}}
    2537
    26 - Go to each project and make a link do django_091/django, so module
     38Go to each project and make a link do `django_091/django`, so module
    2739imports are done on the correct directory:
    2840
     41{{{
    2942ln -s $HOME/django_091/django $HOME/django_projects/your_project_name/django
     43}}}
    3044
    31 - Remove two !__init!__.pyc files otherwise /admin/ will complain that someone messed with "magic numbers" (a django security thing, I suppose?):
     45Remove two `!__init!__.pyc` files otherwise `/admin/` will complain that someone messed with "magic numbers" (a django security thing, I suppose?):
    3246
     47{{{
    3348rm django_src/django/contrib/admin/urls/!__init!__.pyc
    3449rm django_src/django/contrib/admin/models/!__init!__.pyc
     50}}}
    3551
    36 - Update django_src to the newest SVN
     52Update django_src to the newest SVN
    3753
     54{{{
    3855cd django_src
    3956svn update
     57}}}
    4058
    41 - Restart some stuff:
     59Restart some stuff:
    4260
     61{{{
    4362pkill fcgi.py;pkill python
     63}}}
    4464
    4565 And that's it :) Old projects living with 0.91, new ones living with SVN. As you convert your old stuff to the new Django syntax, remove the links made previously so Django imports from django_src:
    4666
     67{{{
    4768rm django_projects/your_project_name/django
     69}}}
Back to Top