Example #1
0
 def check(self):
     warnings = self._check_include_trailing_dollar()
     for pattern in self.url_patterns:
         warnings.extend(check_resolver(pattern))
     if not warnings:
         warnings = self._check_pattern_startswith_slash()
     return warnings
Example #2
0
 def check(self):
     warnings = []
     for pattern in self.url_patterns:
         warnings.extend(check_resolver(pattern))
     if not warnings:
         warnings = self.pattern.check()
     return warnings
Example #3
0
 def check(self):
     messages = []
     for pattern in self.url_patterns:
         messages.extend(check_resolver(pattern))
     messages.extend(self._check_custom_error_handlers())
     return messages or self.pattern.check()
Example #4
0
 def check(self):
     messages = []
     for pattern in self.url_patterns:
         messages.extend(check_resolver(pattern))
     messages.extend(self._check_custom_error_handlers())
     return messages or self.pattern.check()
Example #5
0
 def check(self):
     warnings = []
     for pattern in self.url_patterns:
         warnings.extend(check_resolver(pattern))
     return warnings or self.pattern.check()