Show
Ignore:
Timestamp:
03/25/08 14:11:29 (8 months ago)
Author:
JensDiemer
Message:

work-a-round for ticket:87 with the new PyLucidCommonMiddleware?.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/pylucid/PyLucid/settings_example.py

    r1503 r1505  
    8383# response phase the middleware will be applied in reverse order. 
    8484# 
    85 # !!! IMPORTANT !!! 
    86 #  * In the first install phase (befor the database tables exists) the 
    87 #    'SessionMiddleware' and 'AuthenticationMiddleware' must be deactivated! 
    88 #  * After "syncdb" you must activate 'SessionMiddleware' and 
    89 #    'AuthenticationMiddleware'! 
    90 #  * The DebugPageCache should be *never* activated. Only for dev debugging. 
    91 # !!! IMPORTANT !!! 
    92 # 
    9385MIDDLEWARE_CLASSES = ( 
    94     # DebugPageCache normaly not used. 
    95 #    'PyLucid.middlewares.page_cache_debug.DebugPageCache', 
    96  
    97     # Activate Session- and Authentication-Middleware after 'syncdb' : 
    98     # ------------------------------------------------------------------------- 
    99 #    'django.contrib.sessions.middleware.SessionMiddleware', 
    100 #    'django.contrib.auth.middleware.AuthenticationMiddleware', 
    101     # ------------------------------------------------------------------------- 
    102  
    103     'django.middleware.locale.LocaleMiddleware', 
     86    # PyLucidCommonMiddleware loads the django middlewares: 
     87    #    - 'django.contrib.sessions.middleware.SessionMiddleware' 
     88    #    - 'django.contrib.auth.middleware.AuthenticationMiddleware' 
     89    #    - 'django.middleware.locale.LocaleMiddleware' 
     90    'PyLucid.middlewares.common.PyLucidCommonMiddleware', 
     91 
    10492    'django.middleware.common.CommonMiddleware', 
    10593    'django.middleware.doc.XViewMiddleware',