<commit_before># encoding: utf-8
# copyright Vimba inc. 2010
# programmer : <NAME>
# 
import os
from django.utils.translation import ugettext_lazy as _

ADMINS = (
    ('support', '<EMAIL>')
)

#SERVER_PATH = os.path.dirname(os.path.realpath( __file__ ))
#MEDIA_PATH = SERVER_PATH + "/../"

DEBUG = False
TEMPLATE_DEBUG = False
ENABLE_STATIC = False

if DEBUG:
    EMAIL_HOST = 'localhost'
    EMAIL_PORT = 1025
    
# Local time zone for this installation. Choices can be found here:
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
TIME_ZONE = 'America/Montreal'

# Language code for this installation. All choices can be found here: # http://www.i18nguy.com/unicode/language-identifiers.html
LANGUAGE_CODE = 'en-us'
DEFAULT_LANGUAGE = 0

SITE_ID = 1

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

# 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).
# Examples: "http://media.lawrence.com", "http://example.com/media/"
MEDIA_URL = '/media/'

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

ROOT_URLCONF = 'urls'

AUTHENTICATION_BACKENDS = (
    #'satchmo_store.accounts.email-auth.EmailBackend',   # Required by Satchmo
    'django.contrib.auth.backends.ModelBackend',
)

TEMPLATE_CONTEXT_PROCESSORS = (
    #'satchmo_store.shop.context_processors.settings',   # Required by Satchmo
    'django.core.context_processors.auth',                  # Must specify this one if we specify a TEMPLATE_CONTEXT_PROCESSORS tuple
    'django.core.context_processors.request',               # Add the request to the context
    'django.core.context_processors.media',                 # Add MEDIA_URL to every RequestContext
#    'django.core.context_processors.debug',
#    'django.core.context_processors.i18n',
)

# List of callables that know how to import templates from various sources.
TEMPLATE_LOADERS = (
    'django.template.loaders.filesystem.load_template_source',
    'django.template.loaders.app_directories.load_template_source',
#     'django.template.loaders.eggs.load_template_source',
)

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.
    #SERVER_PATH + '/templates',
    #os.path.dirname(__file__) + '/www/templates',
    
)

MIDDLEWARE_CLASSES = ('django.middleware.common.CommonMiddleware'
                      # cache system
                      #'django.middleware.cache.UpdateCacheMiddleware',
                      #'django.middleware.cache.FetchFromCacheMiddleware',
                      ,'django.contrib.sessions.middleware.SessionMiddleware'
                      #,"django.middleware.locale.LocaleMiddleware" # Required by Satchmo
                      ,'django.contrib.auth.middleware.AuthenticationMiddleware'
                      ,'django.middleware.doc.XViewMiddleware'
                      #'django.middleware.csrf.CsrfViewMiddleware' __TODO: Disabled since Satchmo 0.9.x doesn't officially support Django > 1.1 and this CSRF protection has been added in 1.2
                      #,'threaded_multihost.middleware.ThreadLocalMiddleware' # Required by Satchmo
                      #,'satchmo_store.shop.SSLMiddleware.SSLRedirect'        # Required by Satchmo
                      #,'vcms.www.middleware.EnforceLoginMiddleware',
                      )

INSTALLED_APPS = ('django.contrib.sites'
                  #,'satchmo_store.shop' # Satchmo, must preceed django.contrib.admin
                  ,'django.contrib.admin'
                  ,'django.contrib.auth'
                  ,'django.contrib.contenttypes'
                  ,'django.contrib.sessions'
                  ,'django.contrib.sitemaps'
                  ,'django.contrib.humanize'
                  #'tagging'
                  ,'django_extensions'
                  ,'easy_thumbnails'
                  ,'haystack'
                  ,'treebeard'
                  #'rosetta'
                  ,'mptt'
                  ,'captcha'                              # http://code.google.com/p/django-simple-captcha/
                  ,'registration'                         # http://bitbucket.org/ubernostrum/django-registration/
                  ,'vcms.www'
                  ,'l10n'
                  #,'djvideo'                  # djvideo_link | http://git.participatoryculture.org/djvideo/
                  ,'compressor'                           # git://github.com/dziegler/django-css.git
                  # VIMBA CMS APPS
                  ,'site_media'
                  ,'site_language'
                  ,'vcms.simpleblogs'
                  ,'hwm'
                  ,'vcms.themes'
                  ,'vcontact'
                  ,'updates_registration'
                  ,'htmltools'
                  # Custom apps for cms
                  # google analytics
                  ,'google_analytics'
                  ,'sorl.thumbnail'
                  #,'south'
                  #SATCHMO
                  #,'satchmo_store.contact'<commit_msg>added image_gallery to default app<commit_after># encoding: utf-8
# copyright Vimba inc. 2010
# programmer : <NAME>
# 
import os
from django.utils.translation import ugettext_lazy as _

ADMINS = (
    ('support', '<EMAIL>')
)

#SERVER_PATH = os.path.dirname(os.path.realpath( __file__ ))
#MEDIA_PATH = SERVER_PATH + "/../"

DEBUG = False
TEMPLATE_DEBUG = False
ENABLE_STATIC = False

if DEBUG:
    EMAIL_HOST = 'localhost'
    EMAIL_PORT = 1025
    
# Local time zone for this installation. Choices can be found here:
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
TIME_ZONE = 'America/Montreal'

# Language code for this installation. All choices can be found here: # http://www.i18nguy.com/unicode/language-identifiers.html
LANGUAGE_CODE = 'en-us'
DEFAULT_LANGUAGE = 0

SITE_ID = 1

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

# 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).
# Examples: "http://media.lawrence.com", "http://example.com/media/"
MEDIA_URL = '/media/'

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

ROOT_URLCONF = 'urls'

AUTHENTICATION_BACKENDS = (
    #'satchmo_store.accounts.email-auth.EmailBackend',   # Required by Satchmo
    'django.contrib.auth.backends.ModelBackend',
)

TEMPLATE_CONTEXT_PROCESSORS = (
    #'satchmo_store.shop.context_processors.settings',   # Required by Satchmo
    'django.core.context_processors.auth',                  # Must specify this one if we specify a TEMPLATE_CONTEXT_PROCESSORS tuple
    'django.core.context_processors.request',               # Add the request to the context
    'django.core.context_processors.media',                 # Add MEDIA_URL to every RequestContext
#    'django.core.context_processors.debug',
#    'django.core.context_processors.i18n',
)

# List of callables that know how to import templates from various sources.
TEMPLATE_LOADERS = (
    'django.template.loaders.filesystem.load_template_source',
    'django.template.loaders.app_directories.load_template_source',
#     'django.template.loaders.eggs.load_template_source',
)

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.
    #SERVER_PATH + '/templates',
    #os.path.dirname(__file__) + '/www/templates',
    
)

MIDDLEWARE_CLASSES = ('django.middleware.common.CommonMiddleware'
                      # cache system
                      #'django.middleware.cache.UpdateCacheMiddleware',
                      #'django.middleware.cache.FetchFromCacheMiddleware',
                      ,'django.contrib.sessions.middleware.SessionMiddleware'
                      #,"django.middleware.locale.LocaleMiddleware" # Required by Satchmo
                      ,'django.contrib.auth.middleware.AuthenticationMiddleware'
                      ,'django.middleware.doc.XViewMiddleware'
                      #'django.middleware.csrf.CsrfViewMiddleware' __TODO: Disabled since Satchmo 0.9.x doesn't officially support Django > 1.1 and this CSRF protection has been added in 1.2
                      #,'threaded_multihost.middleware.ThreadLocalMiddleware' # Required by Satchmo
                      #,'satchmo_store.shop.SSLMiddleware.SSLRedirect'        # Required by Satchmo
                      #,'vcms.www.middleware.EnforceLoginMiddleware',
                      )

INSTALLED_APPS = ('django.contrib.sites'
                  #,'satchmo_store.shop' # Satchmo, must preceed django.contrib.admin
                  ,'django.contrib.admin'
                  ,'django.contrib.auth'
                  ,'django.contrib.contenttypes'
                  ,'django.contrib.sessions'
                  ,'django.contrib.sitemaps'
                  ,'django.contrib.humanize'
                  #'tagging'
                  ,'django_extensions'
                  ,'easy_thumbnails'
                  ,'haystack'
                  ,'treebeard'
                  #'rosetta'
                  ,'mptt'
                  ,'captcha'                              # http://code.google.com/p/django-simple-captcha/
                  ,'registration'                         # http://bitbucket.org/ubernostrum/django-registration/
                  ,'vcms.www'
                  ,'l10n'
                  #,'djvideo'                  # djvideo_link | http://git.participatoryculture.org/djvideo/
                  ,'compressor'                           # git://github.com/dziegler/django-css.git
                  # VIMBA CMS APPS
                  ,'site_media'
                  ,'site_language'
                  ,'vcms.simpleblogs'
                  ,'vcms.image_gallery'
                  ,'hwm'
                  ,'vcms.themes'
                  ,'vcontact'
                  ,'updates_registration'
                  ,'htmltools'
                  # Custom apps for cms
                  # google analytics
                  ,'google_analytics'
                  ,'sorl.thumbnail'
                  #,'south'
                  #SATCHMO
                  #,'satchmo_store.contact'
{'fraction_non_alphanumeric': 0.10125639832480224, 'fraction_numerical': 0.004653327128897162, 'mean_word_length': 2.0227848101265824, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 10, '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': '519406', 'n_tokens_mistral': 3201, 'n_tokens_neox': 2960, 'n_words': 640}