<commit_before>#!/usr/bin/env python
"""
This is the project main settings file. (Source controlled).
If you need to override a setting locally, use local_settings.py.
"""
GENERATOR_DJANGO_POLYMER_VERSION = "<%= generator_version %>"
import os
import sys
import logging

from backend.utils import logger


# Django settings for project.
DEBUG = False  # As of Django 1.5 all logging messages reaching the django logger are sent to Console if (DEBUG=True)
TEMPLATE_DEBUG = False
DEV_SETTINGS = <%= dj_devsettings %>
LOG_LEVEL = <%= dj_loglevel %> 

# General Directory Structure
# +++ apps
#   ++ someApp
#       ++ templatetags
#           -- someAppTags.py
#       - models.py
#       - urls.py
#       - views.py
#       - utils.py
#   ++ someOtherApp
#       ++ templatetags
#           -- someOtherAppTags.py
#       - models.py
#       - urls.py
#       - views.py
#       - utils.py
# +++ project
#   ++ settings
#       - base.py (THIS FILE)
#       - dev.py
#       - global.py* (optional)
#   ++ templates
#       # someApp
#           - someTemplate.html
#   ++ test_factories
#       - usefulFactoryScript.py
#   ++ utils
#       - usefulFunctions.py
#   ++ views
#       - mixins.py
#   ++ static
#       - staticFile.html/css/png
#   ++ media
#   - urls.py
#   - views.py

DATABASES = {
    'default': {
        'ENGINE':   <%= db_engine %>,                # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
        'NAME':     <%= db_name %>,                  # Or path to database file if using sqlite3.
        'USER':     <%= db_user %>,                  # Not used with sqlite3.
        'PASSWORD': <%= db_password %>,              # Not used with sqlite3.
        'HOST':     <%= db_host %>,                  # Set to empty string for localhost. Not used with sqlite3.
        'PORT':     <%= db_port %>,                  # Set to empty string for default. Not used with sqlite3.
    }
}

# ============================================================================ #
# Main Paths
# ============================================================================ #
# Make filepaths relative to settings. This dynamically discovers the path to the project
PROJECT_ROOT = os.path.dirname(os.path.realpath(os.path.dirname(__file__)))
SITE_ROOT = os.path.dirname(PROJECT_ROOT)
APP_ROOT = os.path.join(SITE_ROOT, 'apps')
# Add App/Library Path
sys.path.append(APP_ROOT)

# ---------------------------------------------------------------------------- #
# General<commit_msg>small changes<commit_after>#!/usr/bin/env python
"""
This is the project main settings file. (Source controlled).
If you need to override a setting locally, use local_settings.py.
"""
GENERATOR_DJANGO_POLYMER_VERSION = "<%= generator_version %>"
import os
import sys
import logging

from backend.utils import logger


# Django settings for project.
DEBUG = False  # As of Django 1.5 all logging messages reaching the django logger are sent to Console if (DEBUG=True)
TEMPLATE_DEBUG = False
DEV_SETTINGS = <%= dj_devsettings %>
LOG_LEVEL = <%= dj_loglevel %> 

# General Directory Structure
# +++ apps
#   ++ someApp
#       ++ templatetags
#           -- someAppTags.py
#       - models.py
#       - urls.py
#       - views.py
#       - utils.py
#   ++ someOtherApp
#       ++ templatetags
#           -- someOtherAppTags.py
#       - models.py
#       - urls.py
#       - views.py
#       - utils.py
# +++ project
#   ++ settings
#       - base.py (THIS FILE)
#       - dev.py
#       - global.py* (optional)
#   ++ templates
#       # someApp
#           - someTemplate.html
#   ++ test_factories
#       - usefulFactoryScript.py
#   ++ utils
#       - usefulFunctions.py
#   ++ views
#       - mixins.py
#   ++ static
#       - staticFile.html/css/png
#   ++ media
#   - urls.py
#   - views.py

DATABASES = {
    'default': {
        'ENGINE':   <%- db_engine %>,                # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
        'NAME':     <%- db_name %>,                  # Or path to database file if using sqlite3.
        'USER':     <%- db_user %>,                  # Not used with sqlite3.
        'PASSWORD': <%- db_password %>,              # Not used with sqlite3.
        'HOST':     <%- db_host %>,                  # Set to empty string for localhost. Not used with sqlite3.
        'PORT':     <%- db_port %>,                  # Set to empty string for default. Not used with sqlite3.
    }
}

# ============================================================================ #
# Main Paths
# ============================================================================ #
# Make filepaths relative to settings. This dynamically discovers the path to the project
PROJECT_ROOT = os.path.dirname(os.path.realpath(os.path.dirname(__file__)))
SITE_ROOT = os.path.dirname(PROJECT_ROOT)
APP_ROOT = os.path.join(SITE_ROOT, 'apps')
# Add App/Library Path
sys.path.append(APP_ROOT)

# ---------------------------------------------------------------------------- #
# General
{'fraction_non_alphanumeric': 0.20836653386454182, 'fraction_numerical': 0.0035856573705179283, 'mean_word_length': 2.12640099626401, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 21, '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': '5885021', 'n_tokens_mistral': 1544, 'n_tokens_neox': 1458, 'n_words': 372}