models.py 421 B

12345678910
  1. from django.conf import settings
  2. from django.core import urlresolvers
  3. # To load docutils extensions somewhere
  4. from missing import admindocs
  5. # NoReverseMatch exceptions are silent (replaced by TEMPLATE_STRING_IF_INVALID setting), but we
  6. # disable this behavior here
  7. if getattr(settings, 'URL_RESOLVERS_DEBUG', False) and getattr(settings, 'DEBUG', False):
  8. urlresolvers.NoReverseMatch.silent_variable_failure = False