fixed static file serving via starlet
This commit is contained in:
parent
295334a4a3
commit
d7a22bf715
1 changed files with 6 additions and 2 deletions
|
@ -33,7 +33,11 @@ with suppress(ImportError):
|
|||
|
||||
static_app = ProtocolTypeRouter({
|
||||
"http": Starlette(routes=[
|
||||
Mount(settings.STATIC_URL, app=StaticFiles(directory=settings.STATIC_ROOT), name='static'),
|
||||
Mount('/', app=django_asgi),
|
||||
Mount(
|
||||
path=settings.STATIC_URL,
|
||||
app=StaticFiles(directory=settings.STATIC_ROOT, follow_symlink=True),
|
||||
name='static',
|
||||
),
|
||||
Mount(path='/',app=django_asgi),
|
||||
]),
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue