[password-resets] Prepend DOCUMENT_ROOT
- From: Andrea Veri <averi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [password-resets] Prepend DOCUMENT_ROOT
- Date: Thu, 12 Nov 2020 16:38:11 +0000 (UTC)
commit 9f26a094ac3bb43780b3deaf237465e0e0ab1694
Author: Andrea Veri <averi redhat com>
Date: Thu Nov 12 17:38:01 2020 +0100
Prepend DOCUMENT_ROOT
app.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/app.py b/app.py
index 4789311..77a1345 100644
--- a/app.py
+++ b/app.py
@@ -37,7 +37,7 @@ SMTP_RELAY_HOST = os.environ.get('SMTP_RELAY_HOST')
glu = gnome_ldap_utils.Gnome_ldap_utils(LDAP_GROUP_BASE, LDAP_HOST, LDAP_USER_BASE, LDAP_USER,
LDAP_PASSWORD, LDAP_CA_PATH)
app = FastAPI()
-app.mount("/static", StaticFiles(directory="static"), name="static")
+app.mount("/static", StaticFiles(directory=f"{DOCUMENT_ROOT}/static), name="static")
templates = Jinja2Templates(directory=f"{DOCUMENT_ROOT}/templates")
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]