1
0
mirror of https://github.com/ilri/dspace-statistics-api.git synced 2025-07-01 04:01:54 +02:00

Refactor configuration into separate module

There is a good example of this in the Project Weekend GitHub profile.

See: https://github.com/projectweekend/Falcon-PostgreSQL-API-Seed
This commit is contained in:
2018-09-18 16:59:28 +03:00
parent 5b5cab8b34
commit 06ab254017
2 changed files with 10 additions and 7 deletions

5
config.py Normal file
View File

@ -0,0 +1,5 @@
import os
# Check if Solr connection information was provided in the environment
SOLR_SERVER = os.environ.get('SOLR_SERVER', 'http://localhost:8080/solr')
SOLR_CORE = os.environ.get('SOLR_CORE', 'statistics')