Issue #5 duplicate
Anonymous created an issue

In management/commands/runwsgiserver.py: django.contrib is used to serve static files, but not imported before, so in some case "contrib" lookup fails when searching module "django".

{{{

!python

path = { '/': app,
         settings.MEDIA_URL: mediahandler.MediaHandler(settings.MEDIA_ROOT),
         settings.ADMIN_MEDIA_PREFIX: mediahandler.MediaHandler(
             os.path.join( django.contrib.admin.__path__[0],
                           'media' )
             )
         }

}}}

Comments (3)

  1. Christopher Lee-Messer repo owner

    This may already be fixed in the latest version. line 249 of runwsgiserver.py looks like this. Will re-run test and look to see if this is include in the release.

    import django.contrib.admin
    path[settings.ADMIN_MEDIA_PREFIX] = mediahandler.MediaHandler(        
                os.path.join( django.contrib.admin.__path__[0], 'media'))
    
  2. Log in to comment