Revision 7c354a92

b/snf-webproject/synnefo/webproject/middleware/cleanse.py
35 35
from django.core.exceptions import MiddlewareNotUsed
36 36

  
37 37
from django.core import mail
38
from django.views import debug
39

  
40
import re
41 38

  
42 39
HIDDEN_ALL = settings.HIDDEN_COOKIES + settings.HIDDEN_HEADERS
43 40

  
......
98 95
    deployments.
99 96
    '''
100 97
    def __init__(self):
101
        debug.HIDDEN_SETTINGS = re.compile(settings.HIDDEN_SETTINGS)
102

  
103 98
        if not hasattr(mail, 'mail_admins_plain'):
104 99
            mail.mail_admins_plain = mail.mail_admins
105 100
            mail.mail_admins = mail_admins_safe
b/snf-webproject/synnefo/webproject/models.py
1
# Patch hard-coded 'django.views.debug.HIDDEN_SETTINGS' to the list of Synnefo
2
# HIDDEN_SETTINGS
3
import re
4

  
5
from django.views import debug
6
from django.conf import settings
7

  
8
debug.HIDDEN_SETTINGS = re.compile(settings.HIDDEN_SETTINGS)

Also available in: Unified diff