projects
/
pgweb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e1b397a
)
Store project root directory in settings
author
Magnus Hagander
<magnus@hagander.net>
Thu, 10 Sep 2020 12:52:41 +0000
(14:52 +0200)
committer
Magnus Hagander
<magnus@hagander.net>
Thu, 10 Sep 2020 12:52:41 +0000
(14:52 +0200)
This makes it possible to reference for example templates in relation to
the root directory.
pgweb/settings.py
patch
|
blob
|
blame
|
history
diff --git
a/pgweb/settings.py
b/pgweb/settings.py
index d17f0d62c51c57a791c0ea097e1f7830811fe3ad..50adc133cf05db3324134d3a651cbcb0a201ee5d 100644
(file)
--- a/
pgweb/settings.py
+++ b/
pgweb/settings.py
@@
-1,5
+1,8
@@
# Django settings for pgweb project.
+import os
+PROJECT_ROOT = os.path.abspath(os.path.dirname(__file__))
+
DEBUG = False
ADMINS = (