Convert to bytes to allow access to static and media resources.
This commit is contained in:
parent
00a87bcdcf
commit
be5ecf0d0d
1 changed files with 2 additions and 2 deletions
|
|
@ -569,9 +569,9 @@ if WEBSERVER_ENABLED:
|
||||||
|
|
||||||
web_root = DjangoWebRoot(threads)
|
web_root = DjangoWebRoot(threads)
|
||||||
# point our media resources to url /media
|
# 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
|
# 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
|
EVENNIA.web_root = web_root
|
||||||
|
|
||||||
if WEB_PLUGINS_MODULE:
|
if WEB_PLUGINS_MODULE:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue