forked from chalobest/ChaloBEST
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
35 lines (25 loc) · 962 Bytes
/
README
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
27
28
29
30
31
32
33
34
35
Note: If running postgres 9.1 and Django < 1.4, you will probably need this patch for things to work: https://code.djangoproject.com/raw-attachment/ticket/16778/postgis-adapter-2.patch . Reasons are explained here: http://stackoverflow.com/questions/7667724/error-saving-geodjango-pointfield
Don't forget to install python-psycopg2 and python-gdal for the sake of GeoDjango.
To install Trigram Search:
psql <database_name>
create extension pg_trgm;
\q
python manage.py trgmidx
chaloBEST
Get:
bzr branch PUBLIC_URL chaloBEST
cd chaloBEST
virtualenv .
pip -E . install -r requirements.txt
Develop:
create chaloBEST/local_settings.py
. bin/activate
cd chaloBEST
python manage.py shell
python manage.py runserver
Deploy:
create chaloBEST/local_settings.py
create /etc/apache2/sites-availavle/sitename.conf
For users:
python manage.py check_permissions
python manage.py update_permissions