Convert to bytes to allow access to static and media resources.

This commit is contained in:
Ryan Stein 2017-10-29 21:58:30 -04:00
parent 00a87bcdcf
commit be5ecf0d0d

View file

@ -569,9 +569,9 @@ if WEBSERVER_ENABLED:
web_root = DjangoWebRoot(threads)
# point our media resources to url /media
web_root.putChild("media", static.File(settings.MEDIA_ROOT))
web_root.putChild(b"media", static.File(settings.MEDIA_ROOT))
# point our static resources to url /static
web_root.putChild("static", static.File(settings.STATIC_ROOT))
web_root.putChild(b"static", static.File(settings.STATIC_ROOT))
EVENNIA.web_root = web_root
if WEB_PLUGINS_MODULE: