edit

Cartoview

This document describes the installation of cartview with geonode Version 2.6.1 on windows

Install On Windows

  • Install Python2.7
    • Make Sure to add the Python in the Path, as this is not setup by default
    • check add python.exe to PATH python setup python setup
  • Install Django 1.8.7 open cmd and type:

    1
    pip install django==1.8.7
    

We recommend to use Docker

Existing GeoNode Users

Check GeoNode and Cartoview version compatibility in PYPI then install Cartoview

  • Requirements:

    • GeoNode == 2.5.15

    Attention

    We will Support more version of Geonode Soon!!

  • install cartoview libraries

    1
    pip install cartoview == <version>
    
  • Create Cartoview Project

    1
    django-admin.py startproject --template=https://github.com/cartologic/cartoview-project-template/archive/master.zip --name django.env,uwsgi.ini,.bowerrc <your_project_name>
    
  • Go to your Project Folder

    1
    cd <your_project_name>
    
  • detect Changes in app_manager

    1
    python manage.py makemigrations app_manager
    
  • create account table

    1
    python manage.py migrate account
    
  • create rest of database tables

    1
    python manage.py migrate
    

  • Collect static Files

    1
    python manage.py collectstatic --noinput
    
  • Now Development Server :

    1
    python manage.py runserver 0.0.0.0:8000
    

Deployment notes

  • Important

    in Production Configure Geoserver before uploading layers from here
  • Important

    Once CartoView is installed is expected to install all apps from the app store automatically At the moment CartoView will fully support apache server only For nginx deployments, CartoView will be able to detect new apps and get the updates, how ever to apply the updates, web server restart will be required to complete the process CartoView will not be able to restart nginx when new apps are installed. After you install or update apps from the app manager page you will need to restart nginx manually until this issue is addressed in the future

    • follow these steps to get apps working on nginx
      • collect static files using this commands
        1
        python manage.py collectstatic --noinput
        
      • restart server now you should restart server after installing any app