Exemple #1
0
 def __init__(self, *args, **kwargs):
     from google.appengine._internal.django.conf import settings
     self.admin_media_prefix = settings.ADMIN_MEDIA_PREFIX
     # We set self.path to avoid crashes in log_message() on unsupported
     # requests (like "OPTIONS").
     self.path = ''
     self.style = color_style()
     BaseHTTPRequestHandler.__init__(self, *args, **kwargs)
Exemple #2
0
 def __init__(self, *args, **kwargs):
     from google.appengine._internal.django.conf import settings
     self.admin_media_prefix = settings.ADMIN_MEDIA_PREFIX
     # We set self.path to avoid crashes in log_message() on unsupported
     # requests (like "OPTIONS").
     self.path = ''
     self.style = color_style()
     BaseHTTPRequestHandler.__init__(self, *args, **kwargs)
Exemple #3
0
 def __init__(self, outfile=sys.stdout):
     self.errors = []
     self.outfile = outfile
     self.style = color_style()
Exemple #4
0
 def __init__(self):
     self.style = color_style()
Exemple #5
0
 def __init__(self):
     self.style = color_style()
 def __init__(self, outfile=sys.stdout):
     self.errors = []
     self.outfile = outfile
     self.style = color_style()