<commit_before>"""Django settings for Sana project.

This file contains the application configuration variablesan is available with
all default values as: ::

    settings.py.tmpl

and should be renamed to settings.py prior to filling in local values. Once
updated, enter the following from the mds installation directory::

    $> ./manage.py syncdb

This will require root privileges.

:Authors: Sana Development Team
:Version: 1.1
"""

import os

DEBUG = True
''' Global debug level. Should be set to False in production environments. '''

TEMPLATE_DEBUG = DEBUG
''' Template debug level. Should be set to False in production environments. '''

ADMINS = (
    # ('<NAME>', '<EMAIL>'),
)
''' Tuple of admin names and email addresses. '''

MANAGERS = ADMINS

DATABASE_NAME='dev.db'
DATABASE_ENGINE='sqlite3'
DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.sqlite3',
        'NAME': 'dev.db',
        'USER': 'mfromano',
    }
}
### Database settings
# DATABASE_ENGINE = os.environ['DATABASE_ENGINE'] or ''
# """'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'."""

# DATABASE_NAME = ''
# """Or path to database file if using sqlite3."""

# DATABASE_USER = ''
# """Not used with sqlite3."""

# DATABASE_PASSWORD = ''
# """Not used with sqlite3."""

# DATABASE_HOST = ''
# """Set to empty string for localhost. Not used with sqlite3."""

# DATABASE_PORT = ''
# """Set to empty string for default. Not used with sqlite3."""

TIME_ZONE = 'America/Chicago'
"""Local time zone for this installation. Choices can be found here:

    http://en.wikipedia.org/wiki/List_of_tz_zones_by_name

although not all choices may be available on all operating systems.
If running in a Windows environment this must be set to the same as your
system time zone.
"""

LANGUAGE_CODE = 'en-us'
"""Language code for this installation. All choices can be found here:

    http://www.i18nguy.com/unicode/language-identifiers.html
"""

SITE_ID = 1
"""Don't touch this unless you know what you are doing."""


USE_I18N = True
"""If you set this to False, Django will make some optimizations so as not to
load the internationalization machinery."""

MEDIA_ROOT = ''
"""Absolute path to the directory that holds media. For a typical Sana
deployment use: "/opt/sana/media/"
"""

MEDIA_URL = ''
"""URL that handles the media served from MEDIA_ROOT. Make sure to use a
trailing slash if there is a path component (optional in other cases). For a
typical Sana deployment use: "/mds/media/". """

ADMIN_MEDIA_PREFIX = '/media/'
"""URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
trailing slash. Examples: "http://foo.com/media/", "/media/".
"""

SECRET_KEY = '<KEY>'
"""Make this unique, and don't share it with anybody. Seriously."""

TEMPLATE_LOADERS = [('django.template.loaders.cached.Loader', (
            'django.template.loaders.filesystem.Loader',
            'django.template.loaders.app_directories.Loader',
)),]
"""List of callables that know how to import templates from various sources."""

MIDDLEWARE_CLASSES = (
    'django.middleware.common.CommonMiddleware',
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    'sana.mrs.util.LoggingMiddleware',
)
"""Don't touch this unless you know what you are doing."""

ROOT_URLCONF = 'sana.urls'
"""Don't touch this unless you know what you are doing."""

TEMPLATE_DIRS = (
)
"""Put strings here, like "/home/html/django_templates" or
"C:/www/django/templates". Always use forward slashes, even on Windows. Don't
forget to use absolute paths, not relative paths.For a typical Sana
deployment use: "/opt/sana/templates/"."""

INSTALLED_APPS = (
    'sana.mrs',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.sites',
    'django.contrib.admin',
    'south',
)
"""Don't touch this unless you know what you are doing."""

### OpenMRS settings. OpenMRS versions seem to have some difference in submitted
### date format.
OPENMRS_SERVER_URL = 'http://localhost/openmrs'
"""Change localhost when deployed."""
OPENMRS_DATE_FMT = '%m/%d/%Y %H:%M'
"""For OpenMRS ver. 1.6. Set to %d/%m/%Y when using OpenMRS 1.7."""
OPENMRS_REPLYTO = ''
"""Reply address for notifications from OpenMRS."""

### Clickatell Settings
CLICKATELL_URI = ''
"""Example 'http://api.clickatell.com/http/sendmsg?%s'"""
CLICKATELL_USER = ''
"""A valid  username."""
CLICKATELL_PASSWORD = ''
"""A valid  password."""
CLICKATELL_API = ''
"""Refer to Clickatell documentation for this value."""

### Kannel Settings
KANNEL_URI = ''
"""URI Example:  'http://127.0.0.1:12121/cgi-bin/sendsms?%s'"""<commit_msg>added MessageMiddleware to installed apps<commit_after>"""Django settings for Sana project.

This file contains the application configuration variablesan is available with
all default values as: ::

    settings.py.tmpl

and should be renamed to settings.py prior to filling in local values. Once
updated, enter the following from the mds installation directory::

    $> ./manage.py syncdb

This will require root privileges.

:Authors: Sana Development Team
:Version: 1.1
"""

import os

DEBUG = True
''' Global debug level. Should be set to False in production environments. '''

TEMPLATE_DEBUG = DEBUG
''' Template debug level. Should be set to False in production environments. '''

ADMINS = (
    # ('<NAME>', '<EMAIL>'),
)
''' Tuple of admin names and email addresses. '''

MANAGERS = ADMINS

DATABASE_NAME='dev.db'
DATABASE_ENGINE='sqlite3'
DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.sqlite3',
        'NAME': 'dev.db',
        'USER': 'mfromano',
    }
}
### Database settings
# DATABASE_ENGINE = os.environ['DATABASE_ENGINE'] or ''
# """'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'."""

# DATABASE_NAME = ''
# """Or path to database file if using sqlite3."""

# DATABASE_USER = ''
# """Not used with sqlite3."""

# DATABASE_PASSWORD = ''
# """Not used with sqlite3."""

# DATABASE_HOST = ''
# """Set to empty string for localhost. Not used with sqlite3."""

# DATABASE_PORT = ''
# """Set to empty string for default. Not used with sqlite3."""

TIME_ZONE = 'America/Chicago'
"""Local time zone for this installation. Choices can be found here:

    http://en.wikipedia.org/wiki/List_of_tz_zones_by_name

although not all choices may be available on all operating systems.
If running in a Windows environment this must be set to the same as your
system time zone.
"""

LANGUAGE_CODE = 'en-us'
"""Language code for this installation. All choices can be found here:

    http://www.i18nguy.com/unicode/language-identifiers.html
"""

SITE_ID = 1
"""Don't touch this unless you know what you are doing."""


USE_I18N = True
"""If you set this to False, Django will make some optimizations so as not to
load the internationalization machinery."""

MEDIA_ROOT = ''
"""Absolute path to the directory that holds media. For a typical Sana
deployment use: "/opt/sana/media/"
"""

MEDIA_URL = ''
"""URL that handles the media served from MEDIA_ROOT. Make sure to use a
trailing slash if there is a path component (optional in other cases). For a
typical Sana deployment use: "/mds/media/". """

ADMIN_MEDIA_PREFIX = '/media/'
"""URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
trailing slash. Examples: "http://foo.com/media/", "/media/".
"""

SECRET_KEY = 'b#%x46e0f=<KEY>'
"""Make this unique, and don't share it with anybody. Seriously."""

TEMPLATE_LOADERS = [('django.template.loaders.cached.Loader', (
            'django.template.loaders.filesystem.Loader',
            'django.template.loaders.app_directories.Loader',
)),]
"""List of callables that know how to import templates from various sources."""

MIDDLEWARE_CLASSES = (
    'django.middleware.common.CommonMiddleware',
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    'sana.mrs.util.LoggingMiddleware',
)
"""Don't touch this unless you know what you are doing."""

ROOT_URLCONF = 'sana.urls'
"""Don't touch this unless you know what you are doing."""

TEMPLATE_DIRS = (
)
"""Put strings here, like "/home/html/django_templates" or
"C:/www/django/templates". Always use forward slashes, even on Windows. Don't
forget to use absolute paths, not relative paths.For a typical Sana
deployment use: "/opt/sana/templates/"."""

INSTALLED_APPS = (
    'sana.mrs',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.sites',
    'django.contrib.admin',
    'django.contrib.messages.middleware.MessageMiddleware',
    'south',
)
"""Don't touch this unless you know what you are doing."""

### OpenMRS settings. OpenMRS versions seem to have some difference in submitted
### date format.
OPENMRS_SERVER_URL = 'http://localhost/openmrs'
"""Change localhost when deployed."""
OPENMRS_DATE_FMT = '%m/%d/%Y %H:%M'
"""For OpenMRS ver. 1.6. Set to %d/%m/%Y when using OpenMRS 1.7."""
OPENMRS_REPLYTO = ''
"""Reply address for notifications from OpenMRS."""

### Clickatell Settings
CLICKATELL_URI = ''
"""Example 'http://api.clickatell.com/http/sendmsg?%s'"""
CLICKATELL_USER = ''
"""A valid  username."""
CLICKATELL_PASSWORD = ''
"""A valid  password."""
CLICKATELL_API = ''
"""Refer to Clickatell documentation for this value."""

### Kannel Settings
KANNEL_URI = ''
"""URI Example:  'http://127.0.0.1:12121/cgi-bin/sendsms?%s'"""
{'fraction_non_alphanumeric': 0.13801095659502738, 'fraction_numerical': 0.0068478718921196795, 'mean_word_length': 4.198795180722891, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '61613', 'n_tokens_mistral': 3046, 'n_tokens_neox': 2948, 'n_words': 978}