@cors_enabled('*')
def serve_cors(*args, **kwargs):
 if (not settings.DEBUG):
  raise RuntimeError("Don't use kitsune.sumo.views.serve_cors in production.")
 from django.views.static import serve
 return serve(*args, **kwargs)

@ cors_enabled ( '*' ) def serve_cors ( * args , ** kwargs ) : if ( not settings . DEBUG ) : raise RuntimeError ( "Don't use kitsune.sumo.views.serve_cors in production." ) from django . views . static import serve return serve ( * args , ** kwargs )
a wrapper around django .