Ticket #14507: 14507.diff

File 14507.diff, 620 bytes (added by Marco Bonetti, 14 years ago)

Patch to fix

  • django/contrib/staticfiles/views.py

     
    4141    template hardcoded below, but if you'd like to override it, you can create
    4242    a template called ``static/directory_index.html``.
    4343    """
    44     if settings.DEBUG:
     44    if not settings.DEBUG:
    4545        raise ImproperlyConfigured("The view to serve static files can only "
    4646                                   "be used if the DEBUG setting is True")
    4747    if not document_root:
Back to Top