forked from rdrg/Datea
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathINSTALL.txt
41 lines (27 loc) · 1.09 KB
/
INSTALL.txt
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
36
37
38
39
40
41
Requirements:
- python, pip, virtualenv
- imagemagick
- Postresql with Postgis -> follow instructions on postgis_install_instructions_required.txt and/or on http://geodjango.com
Install for local development:
1. create postgre/postgis database:
- see postgis_install_instructions_required.txt
2. create local_settings.py file:
$ cd <app directory>
$ cp datea/local_settings_template.py datea/local_settings.py
3. edit local_settings.py
- use vim or whatever editor to edit your local_settings.py file.
- pay attention to the db settings: user, pw, dbname
4. create python virtual environment and install all required packages
$ cd <app directory>
$ virtualenv --no-site-packages env
$ source env/bin/activate
$ pip install -r datea/requirements/requirements.txt
5. sync database
$ ./manage.py syncdb --all
$ ./manage.py migrate -- fake
6. Install and run apache solr search engine:
- see datea/requirements/solr/instructions.txt
7. that should be it
Run for local development:
$ ./manage.py runserver
-> that runs it on http://127.0.0.1:8000