app/settings.py
changeset 2904 395cff83dc83
parent 2896 5a3c5a2f567f
child 2946 69be8ea0b597
equal deleted inserted replaced
2903:bf17c6a843dd 2904:395cff83dc83
    83     'django.template.loaders.filesystem.load_template_source',
    83     'django.template.loaders.filesystem.load_template_source',
    84     'django.template.loaders.app_directories.load_template_source',
    84     'django.template.loaders.app_directories.load_template_source',
    85 #     'django.template.loaders.eggs.load_template_source',
    85 #     'django.template.loaders.eggs.load_template_source',
    86 )
    86 )
    87 
    87 
       
    88 # The order of the middleware is as follows because:
       
    89 # - The ValueStore middleware should be before any other middleware
       
    90 #   so that the value store is available to it.
       
    91 # - The ExceptionHandler should be the outermost handler (after the
       
    92 #   ValueStore) so as to catch as many errors as possible.
       
    93 # - The Profile middleware should be as outmost as possible, so that
       
    94 #   as many function calls as possible, but it cannot be before the
       
    95 #   ExceptionHandler (so as to catch exceptions thrown by it).
       
    96 # - The MaintenanceMiddleware should be after the Profiler, since we
       
    97 #   do want it's actions profiled.
    88 MIDDLEWARE_CLASSES = (
    98 MIDDLEWARE_CLASSES = (
       
    99     'soc.middleware.value_store.ValueStoreMiddleware',
       
   100     'soc.middleware.exception_handler.ExceptionHandlerMiddleware',
    89     'app_profiler.app_profiler.ProfileMiddleware',    
   101     'app_profiler.app_profiler.ProfileMiddleware',    
       
   102     'soc.middleware.maintenance.MaintenanceMiddleware',
    90 #    'django.middleware.common.CommonMiddleware',
   103 #    'django.middleware.common.CommonMiddleware',
    91 #    'django.contrib.sessions.middleware.SessionMiddleware',
   104 #    'django.contrib.sessions.middleware.SessionMiddleware',
    92 #    'django.contrib.auth.middleware.AuthenticationMiddleware',
   105 #    'django.contrib.auth.middleware.AuthenticationMiddleware',
    93 #    'django.middleware.doc.XViewMiddleware',
   106 #    'django.middleware.doc.XViewMiddleware',
    94 )
   107 )