Installation - wl-net/dataview GitHub Wiki
- 1GB of ram
- 2-4 CPU cores
- Ubuntu 14.04
- Python 3.4
- Postgres with PostGIS
- python3-pip
- postgresql-server-dev-all
- psycopg2
Or as one command:
Make sure you are installing the python 3.x version of these modules (using your distribution's package manager, pip3 or pip-python3)
- django-filter
- django-dashing
- django-guardian
- django-bootstrap3
- requests
- djangorestframework
- django-bootstrap-navtags
- django-formtools
$ git clone https://github.com/wl-net/dataview.git
Follow the Configuration section to learn how to configure Dataview.
Once configured:
$ python3 manage.py runserver 0.0.0.0:8000
To deploy Dataview with Apache review the Configure Apache section. Navigate to the instance you configured, for example http://DATAVIEW:8000/ to get started.
- Copy dataview/settings.dist.py to dataview/settings.py
- Set the SECRET_KEY directive.
- Set the STATIC_ROOT directive to
/path/to/dataview/.static
- Configure the DATABASES section.
- Follow the section on "Postgres Configuration"
- run
python3 manage.py syncdb
- run
echo "yes" | python3 manage.py collectstatic
Detailed documentation of core django configuration options is provided on the djangoproject website: https://docs.djangoproject.com/en/1.7/ref/settings/
- Change user to the postgres user:
# su postgres -
- Create the user for dataview
$ createuser myuser
- Run the postgres shell:
$ psql template1
- Create the database
CREATE DATABASE dataview;
- Allow access to the database
GRANT ALL ON ALL TABLES IN SCHEMA public to "myuser"; GRANT ALL ON ALL SEQUENCES IN SCHEMA public to "myuser"; GRANT ALL ON ALL FUNCTIONS IN SCHEMA public to "myuser";
Note: Press ctrl+d to escape the postgres shell.
- Login to your new database:
$ psql dataview
- Enable PostGIS:
CREATE EXTENSION postgis; CREATE EXTENSION postgis_topology; CREATE EXTENSION fuzzystrmatch; CREATE EXTENSION postgis_tiger_geocoder;
$ python3 manage.py runserver 0.0.0.0:8000
$ cp dataview/config/dataview.conf /etc/apache2/sites-available/ $ sudo a2ensite dataview $ sudo service apache2 restart