Skip to content
  • Daniel Klaffenbach's avatar
    development.middleware: Issue warning instead of raising exception · 38a9c459
    Daniel Klaffenbach authored
    Raising an exception depending on `settings.DEBUG` turned out to be a bad
    idea, as it breaks tests. We could try to detect Django's test mode and
    surpress the exception, but that might not be reliable either.
    
    So the best thing to do in that case is to issue a warning through Python's
    logging system.
    38a9c459