<commit_before>import os
import dj_database_url

from microdash.settings.base import *

env = os.getenv
PROJECT_ROOT = os.path.dirname(os.path.realpath(__file__))
# settings is one directory up now
here = lambda *x: os.path.join(PROJECT_ROOT, '..', *x)

SECRET_KEY = env('SECRET_KEY')

DATABASES = {'default': dj_database_url.config(default='postgres://localhost')}<commit_msg>Read settings from the environment.<commit_after>import os
import dj_database_url

from microdash.settings.base import *

env = os.getenv
PROJECT_ROOT = os.path.dirname(os.path.realpath(__file__))
# settings is one directory up now
here = lambda *x: os.path.join(PROJECT_ROOT, '..', *x)

SECRET_KEY = env('SECRET_KEY')

DATABASES = {'default': dj_database_url.config(default='postgres://localhost')}

TWITTER_KEY = env('TWITTER_KEY')
TWITTER_SECRET = env('TWITTER_KEY')
{'fraction_non_alphanumeric': 0.1359338061465721, 'fraction_numerical': 0.0, 'mean_word_length': 6.239316239316239, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5302817', 'n_tokens_mistral': 310, 'n_tokens_neox': 305, 'n_words': 61}