src/hp/settings.py
author ymh <ymh.work@gmail.com>
Mon, 19 Nov 2012 22:57:12 +0100
changeset 74 1b68d4acab0d
parent 47 6bebef3405d5
permissions -rw-r--r--
back to multisegment. new version
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
37
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
     1
# Django settings for hp project.
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
     2
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
     3
DEBUG = True
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
     4
TEMPLATE_DEBUG = DEBUG
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
     5
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
     6
ADMINS = (
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
     7
    # ('Your Name', 'your_email@example.com'),
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
     8
)
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
     9
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
    10
MANAGERS = ADMINS
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
    11
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
    12
DATABASES = {
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
    13
    'default': {
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
    14
        'ENGINE': 'django.db.backends.', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
    15
        'NAME': '',                      # Or path to database file if using sqlite3.
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
    16
        'USER': '',                      # Not used with sqlite3.
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
    17
        'PASSWORD': '',                  # Not used with sqlite3.
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
    18
        'HOST': '',                      # Set to empty string for localhost. Not used with sqlite3.
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
    19
        'PORT': '',                      # Set to empty string for default. Not used with sqlite3.
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
    20
    }
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
    21
}
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
    22
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
    23
# Local time zone for this installation. Choices can be found here:
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
    24
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
    25
# although not all choices may be available on all operating systems.
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
    26
# In a Windows environment this must be set to your system time zone.
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
    27
TIME_ZONE = 'America/Chicago'
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
    28
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
    29
# Language code for this installation. All choices can be found here:
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
    30
# http://www.i18nguy.com/unicode/language-identifiers.html
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
    31
LANGUAGE_CODE = 'en-us'
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
    32
47
6bebef3405d5 Add translation files
ymh <ymh.work@gmail.com>
parents: 45
diff changeset
    33
ugettext = lambda s: s
6bebef3405d5 Add translation files
ymh <ymh.work@gmail.com>
parents: 45
diff changeset
    34
6bebef3405d5 Add translation files
ymh <ymh.work@gmail.com>
parents: 45
diff changeset
    35
LANGUAGES = ( 
6bebef3405d5 Add translation files
ymh <ymh.work@gmail.com>
parents: 45
diff changeset
    36
    ('fr', ugettext('French')),
6bebef3405d5 Add translation files
ymh <ymh.work@gmail.com>
parents: 45
diff changeset
    37
    ('en', ugettext('English')),
6bebef3405d5 Add translation files
ymh <ymh.work@gmail.com>
parents: 45
diff changeset
    38
    ('ja', ugettext('Japanese')),
6bebef3405d5 Add translation files
ymh <ymh.work@gmail.com>
parents: 45
diff changeset
    39
)
6bebef3405d5 Add translation files
ymh <ymh.work@gmail.com>
parents: 45
diff changeset
    40
6bebef3405d5 Add translation files
ymh <ymh.work@gmail.com>
parents: 45
diff changeset
    41
37
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
    42
SITE_ID = 1
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
    43
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
    44
# If you set this to False, Django will make some optimizations so as not
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
    45
# to load the internationalization machinery.
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
    46
USE_I18N = True
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
    47
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
    48
# If you set this to False, Django will not format dates, numbers and
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
    49
# calendars according to the current locale.
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
    50
USE_L10N = True
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
    51
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
    52
# If you set this to False, Django will not use timezone-aware datetimes.
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
    53
USE_TZ = True
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
    54
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
    55
# Absolute filesystem path to the directory that will hold user-uploaded files.
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
    56
# Example: "/home/media/media.lawrence.com/media/"
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
    57
MEDIA_ROOT = ''
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
    58
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
    59
# URL that handles the media served from MEDIA_ROOT. Make sure to use a
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
    60
# trailing slash.
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
    61
# Examples: "http://media.lawrence.com/media/", "http://example.com/media/"
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
    62
MEDIA_URL = ''
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
    63
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
    64
# Absolute path to the directory static files should be collected to.
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
    65
# Don't put anything in this directory yourself; store your static files
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
    66
# in apps' "static/" subdirectories and in STATICFILES_DIRS.
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
    67
# Example: "/home/media/media.lawrence.com/static/"
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
    68
STATIC_ROOT = ''
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
    69
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
    70
# URL prefix for static files.
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
    71
# Example: "http://media.lawrence.com/static/"
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
    72
STATIC_URL = '/static/'
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
    73
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
    74
# Additional locations of static files
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
    75
STATICFILES_DIRS = (
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
    76
    # Put strings here, like "/home/html/static" or "C:/www/django/static".
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
    77
    # Always use forward slashes, even on Windows.
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
    78
    # Don't forget to use absolute paths, not relative paths.
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
    79
)
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
    80
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
    81
# List of finder classes that know how to find static files in
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
    82
# various locations.
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
    83
STATICFILES_FINDERS = (
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
    84
    'django.contrib.staticfiles.finders.FileSystemFinder',
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
    85
    'django.contrib.staticfiles.finders.AppDirectoriesFinder',
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
    86
#    'django.contrib.staticfiles.finders.DefaultStorageFinder',
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
    87
)
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
    88
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
    89
# Make this unique, and don't share it with anybody.
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
    90
SECRET_KEY = '+n3pim2_+egr*d0qixz310#1dowkc@b$!g0ij+v=9)!7=y&amp;s2g'
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
    91
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
    92
# List of callables that know how to import templates from various sources.
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
    93
TEMPLATE_LOADERS = (
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
    94
    'django.template.loaders.filesystem.Loader',
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
    95
    'django.template.loaders.app_directories.Loader',
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
    96
#     'django.template.loaders.eggs.Loader',
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
    97
)
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
    98
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
    99
MIDDLEWARE_CLASSES = (
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
   100
    'django.middleware.common.CommonMiddleware',
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
   101
    'django.contrib.sessions.middleware.SessionMiddleware',
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
   102
    'django.middleware.csrf.CsrfViewMiddleware',
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
   103
    'django.contrib.auth.middleware.AuthenticationMiddleware',
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
   104
    'django.contrib.messages.middleware.MessageMiddleware',
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
   105
    # Uncomment the next line for simple clickjacking protection:
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
   106
    # 'django.middleware.clickjacking.XFrameOptionsMiddleware',
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
   107
)
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
   108
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
   109
ROOT_URLCONF = 'hp.urls'
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
   110
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
   111
# Python dotted path to the WSGI application used by Django's runserver.
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
   112
WSGI_APPLICATION = 'hp.wsgi.application'
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
   113
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
   114
TEMPLATE_DIRS = (
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
   115
    # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
   116
    # Always use forward slashes, even on Windows.
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
   117
    # Don't forget to use absolute paths, not relative paths.
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
   118
)
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
   119
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
   120
INSTALLED_APPS = (
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
   121
    'django.contrib.auth',
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
   122
    'django.contrib.contenttypes',
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
   123
    'django.contrib.sessions',
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
   124
    'django.contrib.sites',
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
   125
    'django.contrib.messages',
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
   126
    'django.contrib.staticfiles',
38
0fe2f3f5466f add basic pages and api endpoints
ymh <ymh.work@gmail.com>
parents: 37
diff changeset
   127
    'django.contrib.admin',
0fe2f3f5466f add basic pages and api endpoints
ymh <ymh.work@gmail.com>
parents: 37
diff changeset
   128
    'sorl.thumbnail',
0fe2f3f5466f add basic pages and api endpoints
ymh <ymh.work@gmail.com>
parents: 37
diff changeset
   129
    'south',
0fe2f3f5466f add basic pages and api endpoints
ymh <ymh.work@gmail.com>
parents: 37
diff changeset
   130
    'hp',
37
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
   131
    # Uncomment the next line to enable admin documentation:
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
   132
    # 'django.contrib.admindocs',
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
   133
)
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
   134
38
0fe2f3f5466f add basic pages and api endpoints
ymh <ymh.work@gmail.com>
parents: 37
diff changeset
   135
TEMPLATE_CONTEXT_PROCESSORS = ( 
0fe2f3f5466f add basic pages and api endpoints
ymh <ymh.work@gmail.com>
parents: 37
diff changeset
   136
    "django.core.context_processors.request",
0fe2f3f5466f add basic pages and api endpoints
ymh <ymh.work@gmail.com>
parents: 37
diff changeset
   137
    "django.contrib.auth.context_processors.auth",
0fe2f3f5466f add basic pages and api endpoints
ymh <ymh.work@gmail.com>
parents: 37
diff changeset
   138
    "django.core.context_processors.debug",
0fe2f3f5466f add basic pages and api endpoints
ymh <ymh.work@gmail.com>
parents: 37
diff changeset
   139
    "django.core.context_processors.i18n",
0fe2f3f5466f add basic pages and api endpoints
ymh <ymh.work@gmail.com>
parents: 37
diff changeset
   140
    "django.core.context_processors.media",
0fe2f3f5466f add basic pages and api endpoints
ymh <ymh.work@gmail.com>
parents: 37
diff changeset
   141
    "django.core.context_processors.static",
0fe2f3f5466f add basic pages and api endpoints
ymh <ymh.work@gmail.com>
parents: 37
diff changeset
   142
    'hp.context_processors.hp_context',
0fe2f3f5466f add basic pages and api endpoints
ymh <ymh.work@gmail.com>
parents: 37
diff changeset
   143
)
0fe2f3f5466f add basic pages and api endpoints
ymh <ymh.work@gmail.com>
parents: 37
diff changeset
   144
0fe2f3f5466f add basic pages and api endpoints
ymh <ymh.work@gmail.com>
parents: 37
diff changeset
   145
37
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
   146
# A sample logging configuration. The only tangible logging
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
   147
# performed by this configuration is to send an email to
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
   148
# the site admins on every HTTP 500 error when DEBUG=False.
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
   149
# See http://docs.djangoproject.com/en/dev/topics/logging for
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
   150
# more details on how to customize your logging configuration.
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
   151
LOGGING = {
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
   152
    'version': 1,
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
   153
    'disable_existing_loggers': False,
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
   154
    'filters': {
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
   155
        'require_debug_false': {
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
   156
            '()': 'django.utils.log.RequireDebugFalse'
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
   157
        }
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
   158
    },
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
   159
    'handlers': {
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
   160
        'mail_admins': {
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
   161
            'level': 'ERROR',
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
   162
            'filters': ['require_debug_false'],
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
   163
            'class': 'django.utils.log.AdminEmailHandler'
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
   164
        }
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
   165
    },
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
   166
    'loggers': {
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
   167
        'django.request': {
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
   168
            'handlers': ['mail_admins'],
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
   169
            'level': 'ERROR',
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
   170
            'propagate': True,
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
   171
        },
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
   172
    }
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
   173
}
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
   174
45
316a0101512e add pagination new ldt version
ymh <ymh.work@gmail.com>
parents: 43
diff changeset
   175
LDT_NETLOC = "capsicum"
316a0101512e add pagination new ldt version
ymh <ymh.work@gmail.com>
parents: 43
diff changeset
   176
LDT_DOMAIN = 'http://'+LDT_NETLOC
43
4baa7530912c Corrected MDP Embed
veltr
parents: 41
diff changeset
   177
LDT_BASE_URL = LDT_DOMAIN + '/pf/'
41
b6010b3d6ea8 add proxy, model, and correct embed_player
ymh <ymh.work@gmail.com>
parents: 38
diff changeset
   178
LDT_URL = LDT_BASE_URL + "ldtplatform/"
b6010b3d6ea8 add proxy, model, and correct embed_player
ymh <ymh.work@gmail.com>
parents: 38
diff changeset
   179
LDT_API_URL = LDT_URL + 'api/ldt/1.0/'
b6010b3d6ea8 add proxy, model, and correct embed_player
ymh <ymh.work@gmail.com>
parents: 38
diff changeset
   180
LDT_STATIC_URL = LDT_BASE_URL + "static/site/"
b6010b3d6ea8 add proxy, model, and correct embed_player
ymh <ymh.work@gmail.com>
parents: 38
diff changeset
   181
b6010b3d6ea8 add proxy, model, and correct embed_player
ymh <ymh.work@gmail.com>
parents: 38
diff changeset
   182
KC_URL = 'http://176.32.94.234/kn-concierge/'
b6010b3d6ea8 add proxy, model, and correct embed_player
ymh <ymh.work@gmail.com>
parents: 38
diff changeset
   183
45
316a0101512e add pagination new ldt version
ymh <ymh.work@gmail.com>
parents: 43
diff changeset
   184
PER_PAGE = 9
316a0101512e add pagination new ldt version
ymh <ymh.work@gmail.com>
parents: 43
diff changeset
   185
LDT_MAX_FETCH = 200
316a0101512e add pagination new ldt version
ymh <ymh.work@gmail.com>
parents: 43
diff changeset
   186
316a0101512e add pagination new ldt version
ymh <ymh.work@gmail.com>
parents: 43
diff changeset
   187
37
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
   188
38
0fe2f3f5466f add basic pages and api endpoints
ymh <ymh.work@gmail.com>
parents: 37
diff changeset
   189
from .config import * #@UnusedWildImport
0fe2f3f5466f add basic pages and api endpoints
ymh <ymh.work@gmail.com>
parents: 37
diff changeset
   190
41
b6010b3d6ea8 add proxy, model, and correct embed_player
ymh <ymh.work@gmail.com>
parents: 38
diff changeset
   191
b6010b3d6ea8 add proxy, model, and correct embed_player
ymh <ymh.work@gmail.com>
parents: 38
diff changeset
   192