From b74485773468912987bfb080ff448685517833df Mon Sep 17 00:00:00 2001 From: chrisjsimpson Date: Thu, 20 Dec 2018 01:55:19 +0000 Subject: [PATCH] Updated README install instructions for Installation (development) by adding missing default constants for EXCLUDE_APPS and others. Without these getting setup locally fails. --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index c4e5c081..bb914c81 100644 --- a/README.md +++ b/README.md @@ -36,12 +36,24 @@ $ virtualenv --python=python3 ../venv $ source ../venv/bin/activate (venv)$ pip install -r requirements.txt ``` +Note: if this fails you may be missing the `python3-tk` and `tk` packages: + +```bash +$ sudo apt install python3-tk tk +``` ## Configure settings Create and edit `apimanager/apimanager/local_settings.py`: ```python +import os +BASE_DIR = '/your/base/dir' +EXCLUDE_APPS = [] +EXCLUDE_FUNCTIONS = [] +EXCLUDE_URL_PATTERN = [] +API_EXPLORER_APP_NAME = 'API Explorer app name' +API_DATEFORMAT = '%Y-%m-%dT%H:%M:%S.%fZ' # Used internally by Django, can be anything of your choice SECRET_KEY = '' # API hostname, e.g. https://api.openbankproject.com