Skip to content

Commit 78186c7

Browse files
committed
Use the "standard" django way to get at the settings.
- Legacy-Id: 162
1 parent b8aa94d commit 78186c7

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

ietf/utils/log.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import inspect
33
import os.path
44
import ietf
5-
from settings import BASE_DIR
5+
from django.conf import settings
66

77
syslog.openlog("django", syslog.LOG_PID, syslog.LOG_USER)
88

@@ -23,11 +23,11 @@ def getcaller():
2323
def log(msg):
2424
mod, cls, func, file, line = getcaller()
2525
file = os.path.abspath(file)
26-
file = file.replace(BASE_DIR, "")
26+
file = file.replace(settings.BASE_DIR, "")
2727
if func == "<module>":
2828
where = ""
2929
else:
3030
where = " in " + func + "()"
3131
syslog.syslog("ietf%s(%d)%s: %s" % (file, line, where, msg))
3232

33-
log("IETFdb v%s started" % ietf.__version__)
33+
log("IETFdb v%s started" % ietf.__version__)

0 commit comments

Comments
 (0)