]> scripts.mit.edu Git - www/raw.git/blob - news/89.mdwn
Import from TextPattern
[www/raw.git] / news / 89.mdwn
1 [[!meta title="Django on scripts.mit.edu updated to 1.0 and made default"]]
2 We’ve updated the Django Python package on scripts to the   
3 recently-released 1.0 final version, as part of a standard Fedora
4 package   
5 update. We will be releasing an auto-installer soon, although you
6 can   
7 manually set up Django with the django-admin.py command and the
8 sample   
9 FastCGI wrapper on the Django web site.
10
11 If you’re currently using a Django 0.96 site, you can keep Django
12 sites in   
13 your locker at version 0.96 by adding the following lines to the
14 top of   
15 your FastCGI wrapper and manage.py, before any import statements
16 referencing “django”:
17
18     __requires__='Django<1.0'
19     import pkg_resources
20     pkg_resources.require('Django<1.0')
21
22
23
24
25 * * * * *
26
27 If this does not work for you, you can try running the following
28 Athena commands, where LOCKER is the locker with an old Django
29 install:
30
31     attach LOCKER
32     mkdir -p /mit/LOCKER/lib/python2.5/site-packages
33     cd /mit/LOCKER/lib/python2.5/site-packages
34     fs sa . daemon.scripts read
35     echo 'import sys; sys.path.insert(0, "/usr/lib/python2.5/site-packages/Django-0.96_None-py2.5.egg")' > 00django-path.pth
36
37 This will make the Django 0.96 package take precedence for all
38 sites in your locker. You can delete the 00django-path.pth file
39 when you’re ready to upgrade to 1.0.
40
41 We will keep Django 0.96 available until at least the end of fall
42 term.
43
44
45