<commit_before>import os

"""
A simple Django settings module proxy that lets us configure Django
using the DJANGOENV environment variable.

Example (running tests)::

    $ DJANGOENV=test python manage.py test

Defaults to the ``develop`` enviroment, so developers can use ``python
manage.py`` without anything extra during development.
"""

DJANGOENV = os.environ.get('DJANGOENV', 'develop')

if DJANGOENV == 'develop':  # Used for local development
    from devilry.project.develop.settings.develop import *
if DJANGOENV == 'postgres_develop':  # Used for local development with Postgres
    from devilry.project.develop.settings.postgres_develop import *
elif DJANGOENV == 'test':  # Used when running the Django tests
    from devilry.project.develop.settings.test import *
elif DJANGOENV == 'postgres_test':  # Used when running the Django tests with Postgres
    from devilry.project.develop.settings.test import *
elif DJANGOENV == 'extjsbuild':  # Used when building extjs apps
    from devilry.project.develop.settings.extjsbuild import *
elif DJANGOENV == 'noextjsdebug':  # Used to develop/try the UI with built ExtJS apps
    from devilry.project.develop.settings.noextjsdebug import *
else:
    raise ValueError('Invalid value for the DJANGOENV environment variable: {}'.format(DJANGOENV))<commit_msg>project: Fixed settingsproxy after an error when adding postres DJANGOENVs.<commit_after>import os

"""
A simple Django settings module proxy that lets us configure Django
using the DJANGOENV environment variable.

Example (running tests)::

    $ DJANGOENV=test python manage.py test

Defaults to the ``develop`` enviroment, so developers can use ``python
manage.py`` without anything extra during development.
"""

DJANGOENV = os.environ.get('DJANGOENV', 'develop')

if DJANGOENV == 'develop':  # Used for local development
    from devilry.project.develop.settings.develop import *
elif DJANGOENV == 'postgres_develop':  # Used for local development with Postgres
    from devilry.project.develop.settings.postgres_develop import *
elif DJANGOENV == 'test':  # Used when running the Django tests
    from devilry.project.develop.settings.test import *
elif DJANGOENV == 'postgres_test':  # Used when running the Django tests with Postgres
    from devilry.project.develop.settings.test import *
elif DJANGOENV == 'extjsbuild':  # Used when building extjs apps
    from devilry.project.develop.settings.extjsbuild import *
elif DJANGOENV == 'noextjsdebug':  # Used to develop/try the UI with built ExtJS apps
    from devilry.project.develop.settings.noextjsdebug import *
else:
    raise ValueError('Invalid value for the DJANGOENV environment variable: {!r}'.format(DJANGOENV))
{'fraction_non_alphanumeric': 0.08716617210682492, 'fraction_numerical': 0.0, 'mean_word_length': 4.8503253796095445, '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': '7036378', 'n_tokens_mistral': 767, 'n_tokens_neox': 751, 'n_words': 264}