Skip to content

Commit 4e71d1a

Browse files
committed
Store project root directory in settings
This makes it possible to reference for example templates in relation to the root directory.
1 parent 5ea4c37 commit 4e71d1a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pgweb/settings.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Django settings for pgweb project.
22

3+
import os
4+
PROJECT_ROOT = os.path.abspath(os.path.dirname(__file__))
5+
36
DEBUG = False
47

58
ADMINS = (

0 commit comments

Comments
 (0)