<commit_before># We have broken the standard settings.py into two files:
# 1. settings.py: this contains settings that will not change across
#    different deployments of this code.
# 2. custom_settings.py: this contains settings that are likely to
#    change across deployments.
# If you are setting up this project for the first time, copy
# custom_settings_example.py to custom_settings.py and modify these
# custom settings as you needed for your environment.

# Is this really going to help us over having a single settings.py
# example? I think Alex has the answer to this question. -Andrew

import os

PROJECT_ROOT = os.path.dirname(os.path.abspath(__file__))

MEDIA_URL = 'http://1192.168.127.12:8000/site-media/'
MEDIA_ROOT  = os.path.join(PROJECT_ROOT, 'site_media/')

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.sqlite3',
        'NAME': 'db.sqlite3',
    },
}

MONGO = {
    "database name" : "odk",
    "test database name" : "odk_test",
    }

ADMINS = (
    # ('Your Name', '<EMAIL>'),
)

DEBUG = True
TEMPLATE_DEBUG = DEBUG

STRICT = False<commit_msg>using _A_ way to create different mongodbs for individual environments in one server based on the name of the directory it's in.<commit_after># We have broken the standard settings.py into two files:
# 1. settings.py: this contains settings that will not change across
#    different deployments of this code.
# 2. custom_settings.py: this contains settings that are likely to
#    change across deployments.
# If you are setting up this project for the first time, copy
# custom_settings_example.py to custom_settings.py and modify these
# custom settings as you needed for your environment.

# Is this really going to help us over having a single settings.py
# example? I think Alex has the answer to this question. -Andrew

import os, re

PROJECT_ROOT = os.path.dirname(os.path.abspath(__file__))

MEDIA_URL = 'http://127.0.0.1:8000/site-media/'
MEDIA_ROOT  = os.path.join(PROJECT_ROOT, 'site_media/')

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.sqlite3',
        'NAME': 'db.sqlite3',
    },
}

#this is a bad way to do this, but it works for our needs...
# /path/to/repos/production/... will use production
#   "  staging/... will use staging
# all else will be dev.
__repo_env = "dev"
if re.search(PROJECT_ROOT, "production"):
    __repo_env = "production"
elif re.search(PROJECT_ROOT, "staging"):
    __repo_env = "staging"

REPOSITORY_ENVIRONMENT = __repo_env

ADMINS = (
    # ('<NAME>', '<EMAIL>'),
)

DEBUG = True
TEMPLATE_DEBUG = DEBUG

STRICT = False
{'fraction_non_alphanumeric': 0.10607820363917925, 'fraction_numerical': 0.01316298877274487, 'mean_word_length': 3.7239488117001827, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '1278400', 'n_tokens_mistral': 848, 'n_tokens_neox': 825, 'n_words': 291}