From ebc92823f092776ef51e6cffc50ef3dd1eac1b4e Mon Sep 17 00:00:00 2001 From: Martin Mares <mj@ucw.cz> Date: Tue, 26 Jan 2021 14:06:19 +0100 Subject: [PATCH] V /assets/ se nekontroluje session --- mo/web/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mo/web/__init__.py b/mo/web/__init__.py index a5d48e75..cc70d82a 100644 --- a/mo/web/__init__.py +++ b/mo/web/__init__.py @@ -130,7 +130,7 @@ def need_login(): def init_request(): path = request.path - if path.startswith('/static/'): + if path.startswith('/static/') or path.startswith('/assets/'): # Pro statické soubory v development nasazení nepotřebujeme nastavovat # nic dalšího (v ostrém nasazení je servíruje uwsgi) return -- GitLab