Ticket #12616: patch_admin_media_dir_list.diff

File patch_admin_media_dir_list.diff, 570 bytes (added by Arthur Hebert, 15 years ago)
  • django/core/servers/basehttp.py

     
    684684            status = '404 NOT FOUND'
    685685            headers = {'Content-type': 'text/plain'}
    686686            output = ['Page not found: %s' % environ['PATH_INFO']]
     687        elif os.path.isdir(file_path):
     688            return self.application(environ, start_response)
    687689        else:
    688690            try:
    689691                fp = open(file_path, 'rb')
Back to Top