~mhall119/loco-team-portal/fixes-639772

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
For Postgresql:
 - sudo apt-get install postgresql-8.3 python-psycopg2 
# not sure if necessary
# - sudo passwd postgres
#   # change password to 'password' or whatever the password is in loco-directory/settings.py
# - sudo -u postgres psql template1
#   ALTER USER postgres WITH ENCRYPTED PASSWORD 'password';
 - sudo -u postgres createdb -O postgres loco_directory

Generally:
 - sudo apt-get install python-django python-launchpadlib libjs-jquery-ui python-django-openid-auth python-django-south iso-codes gettext python-tz
 - cd loco_directory
 - cp local_settings.py.sample local_settings.py
# edit local_settings.py and set DATABASE_USER, DATABASE_PASSWORD, SECRET_KEY
 - to make maps work, head to http://code.google.com/apis/maps/ and set GOOGLE_API_KEY in local_settings.py

 ** Karmic users must also do the following:
 - sudo ln -s /usr/share/javascript/jquery-ui/jquery-ui-1.7.1.custom.min.js /usr/share/javascript/jquery-ui/jquery-ui.js
 - sudo ln -s /usr/share/javascript/jquery-ui/css/css/smoothness /usr/share/javascript/jquery-ui/css/smoothness
 - sudo ln -s /usr/share/javascript/jquery-ui/css/smoothness/jquery-ui-1.7.1.custom.css /usr/share/javascript/jquery-ui/css/smoothness/jquery-ui.css

 - ./manage.py syncdb
 - ./manage.py migrate
 - ./manage.py init-ld
 - ./manage.py update
 - ./manage.py runserver