Skip to content

Installation

Luís Santos edited this page Jan 4, 2022 · 1 revision

This page explains how to install StyleGranada into CKAN.

  • To install ckanext-styleGranada in a set of Docker images and configuration files to run a CKAN site (https://github.com/okfn/docker-ckan):

    1. Go to Dockerfile in ckan folder /ckan/Dockerfile and add:

      RUN pip install -e git+https://github.com/urbanplatform/ckan-custom-styling.git@master#egg=ckanext-styleGranada

    2. Add the plugin styleGranada to the ckan.plugins setting in your CKAN config file

    3. Rerun or Restart CKAN container::

      docker container start/restart <name_of_ckan_container>

  • To install ckanext-styleGranada on local CKAN project:

    1. Activate your CKAN virtual environment, for example::

      . /usr/lib/ckan/default/bin/activate

    2. Install the ckanext-styleGranada Python package into your virtual environment::

      pip install ckanext-styleGranada

    3. Add styleGranada to the ckan.plugins setting in your CKAN config file (by default the config file is located at /etc/ckan/default/production.ini).

    4. Restart CKAN. For example if you've deployed CKAN with Apache on Ubuntu::

      sudo service apache2 reload

Clone this wiki locally