removing references to AdminMediaHandler, because of incompatibilities with django1.4 and future removal in django1.5
This commit is contained in:
parent
5fc950550f
commit
a2e8f79655
|
@ -24,7 +24,6 @@
|
||||||
import inspect
|
import inspect
|
||||||
import os
|
import os
|
||||||
import django.core.handlers.wsgi
|
import django.core.handlers.wsgi
|
||||||
from django.core.servers.basehttp import AdminMediaHandler
|
|
||||||
|
|
||||||
import spawning.util
|
import spawning.util
|
||||||
|
|
||||||
|
@ -52,7 +51,6 @@ def app_factory(config):
|
||||||
os.environ['DJANGO_SETTINGS_MODULE'] = config['django_settings_module']
|
os.environ['DJANGO_SETTINGS_MODULE'] = config['django_settings_module']
|
||||||
|
|
||||||
app = django.core.handlers.wsgi.WSGIHandler()
|
app = django.core.handlers.wsgi.WSGIHandler()
|
||||||
if config.get('dev'):
|
|
||||||
app = AdminMediaHandler(app)
|
|
||||||
return app
|
return app
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue