Config -> ConfigEngine
[myslice.git] / devel / django-install.txt
1 Versions collected as of nov 14 2012
2
3 ======================================== MAC
4 I'm using macports 
5 $ sudo port install python27 py27-pip py27-django
6 (not even sure if pip is needed then...)
7 -> 1.4.1_0
8
9 NOTE: I haven't found the magic sentence to expose django-admin-2.7.py
10 as simply django-admin.py
11 There's this 'port select' command that can be used for selecting
12 which python to use, which I believe would come in handy here too
13 Except that it insists on taking a so-called 'group' name and I can't
14 find out what to use here
15
16 ~/git/django-playground $ port select --list django
17 Warning: Unable to get active selected version: The specified group
18 'django' does not exist.
19
20 ======================================== fedora(16)
21 $ sudo yum install Django
22 WARNING: version 1.3 !!
23 -> 1.3.4-1
24
25 (Fedora17 has 1.4.2)
26 ======================================== debian(wheezy)
27 $ sudo apt-get install python-django
28 -> 1.5.2
29
30 NOTE. (this has more to do with my own vserver-based technique to
31 create debian VM's)
32
33 ======================================== Install from tarball
34
35 https://www.djangoproject.com/download/
36
37 $tar xzvf Django-1.5.2.tar.gz
38 $cd Django-1.5.2
39 $sudo python setup.py install
40
41 =============== Install locales [needed]
42 I found it useful to also do the following at some point 
43 # apt-get install locales
44 # dpkg-reconfigure locales
45 -> en_US.UTF-8
46
47 The thing is I enter my debian box from a MAC through ssh, and the
48 MAC has this set: LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8
49 and I was getting a lot of warnings relating to that anyways
50
51 ==================== postinstall
52 . manage.py syncdb
53 . manage.py collectstatic --noinput
54
55 ====================