web/hdalab/settings.py
changeset 135 dd6578e36a57
parent 114 c59383cc9940
child 145 5e79ea1eccb3
equal deleted inserted replaced
134:75f8f05f9a60 135:dd6578e36a57
    30 # system time zone.
    30 # system time zone.
    31 TIME_ZONE = 'America/Chicago'
    31 TIME_ZONE = 'America/Chicago'
    32 
    32 
    33 # Language code for this installation. All choices can be found here:
    33 # Language code for this installation. All choices can be found here:
    34 # http://www.i18nguy.com/unicode/language-identifiers.html
    34 # http://www.i18nguy.com/unicode/language-identifiers.html
    35 LANGUAGE_CODE = 'en-us'
    35 LANGUAGE_CODE = 'fr-fr'
       
    36 
       
    37 ugettext = lambda s:s
       
    38 
       
    39 LANGUAGES = (
       
    40   ('fr', ugettext('French')),
       
    41   ('en', ugettext('English')),
       
    42   ('de', ugettext('German')),
       
    43   ('es', ugettext('Spanish')),
       
    44 )
    36 
    45 
    37 SITE_ID = 1
    46 SITE_ID = 1
    38 
    47 
    39 # If you set this to False, Django will make some optimizations so as not
    48 # If you set this to False, Django will make some optimizations so as not
    40 # to load the internationalization machinery.
    49 # to load the internationalization machinery.
    64 STATIC_URL = '/static/'
    73 STATIC_URL = '/static/'
    65 
    74 
    66 # URL prefix for admin static files -- CSS, JavaScript and images.
    75 # URL prefix for admin static files -- CSS, JavaScript and images.
    67 # Make sure to use a trailing slash.
    76 # Make sure to use a trailing slash.
    68 # Examples: "http://foo.com/static/admin/", "/static/admin/".
    77 # Examples: "http://foo.com/static/admin/", "/static/admin/".
    69 ADMIN_MEDIA_PREFIX = '/static/admin/'
    78 #ADMIN_MEDIA_PREFIX = '/static/admin/'
    70 
    79 
    71 # Additional locations of static files
    80 # Additional locations of static files
    72 STATICFILES_DIRS = (
    81 STATICFILES_DIRS = (
    73     # Put strings here, like "/home/html/static" or "C:/www/django/static".
    82     # Put strings here, like "/home/html/static" or "C:/www/django/static".
    74     # Always use forward slashes, even on Windows.
    83     # Always use forward slashes, even on Windows.
    92     'django.template.loaders.app_directories.Loader',
   101     'django.template.loaders.app_directories.Loader',
    93 #     'django.template.loaders.eggs.Loader',
   102 #     'django.template.loaders.eggs.Loader',
    94 )
   103 )
    95 
   104 
    96 MIDDLEWARE_CLASSES = (
   105 MIDDLEWARE_CLASSES = (
       
   106     'django.contrib.sessions.middleware.SessionMiddleware',
       
   107     'django.middleware.locale.LocaleMiddleware',
    97     'django.middleware.common.CommonMiddleware',
   108     'django.middleware.common.CommonMiddleware',
    98     'django.contrib.sessions.middleware.SessionMiddleware',
       
    99     'django.middleware.csrf.CsrfViewMiddleware',
   109     'django.middleware.csrf.CsrfViewMiddleware',
   100     'django.contrib.auth.middleware.AuthenticationMiddleware',
   110     'django.contrib.auth.middleware.AuthenticationMiddleware',
   101     'django.contrib.messages.middleware.MessageMiddleware',
   111     'django.contrib.messages.middleware.MessageMiddleware',
   102 )
   112 )
   103 
   113 
   118     'django.contrib.messages',
   128     'django.contrib.messages',
   119     'django.contrib.staticfiles',
   129     'django.contrib.staticfiles',
   120     'django.contrib.admin',
   130     'django.contrib.admin',
   121     'django_extensions',
   131     'django_extensions',
   122     'hdabo',
   132     'hdabo',
   123     'hdalab'
   133     'hdalab',
   124 )
   134 )
   125 
   135 
   126 # A sample logging configuration. The only tangible logging
   136 # A sample logging configuration. The only tangible logging
   127 # performed by this configuration is to send an email to
   137 # performed by this configuration is to send an email to
   128 # the site admins on every HTTP 500 error.
   138 # the site admins on every HTTP 500 error.
   152 
   162 
   153 WIKIPEDIA_API_URL = "http://fr.wikipedia.org/w/api.php"
   163 WIKIPEDIA_API_URL = "http://fr.wikipedia.org/w/api.php"
   154 WIKIPEDIA_VERSION_PERMALINK_TEMPLATE = "http://fr.wikipedia.org/w/index.php?oldid=%s"
   164 WIKIPEDIA_VERSION_PERMALINK_TEMPLATE = "http://fr.wikipedia.org/w/index.php?oldid=%s"
   155 DBPEDIA_URI_TEMPLATE = "http://dbpedia.org/resource/%s"
   165 DBPEDIA_URI_TEMPLATE = "http://dbpedia.org/resource/%s"
   156 
   166 
   157 
   167 LOCALE_PATHS = ()
   158 
   168 
   159 from hdalab.config import * #@UnusedWildImport
   169 from hdalab.config import * #@UnusedWildImport
   160 
   170