Use the "standard" django way to get at the settings.
- Legacy-Id: 162
This commit is contained in:
parent
b8aa94d007
commit
78186c7406
|
@ -2,7 +2,7 @@ import syslog
|
|||
import inspect
|
||||
import os.path
|
||||
import ietf
|
||||
from settings import BASE_DIR
|
||||
from django.conf import settings
|
||||
|
||||
syslog.openlog("django", syslog.LOG_PID, syslog.LOG_USER)
|
||||
|
||||
|
@ -23,7 +23,7 @@ def getcaller():
|
|||
def log(msg):
|
||||
mod, cls, func, file, line = getcaller()
|
||||
file = os.path.abspath(file)
|
||||
file = file.replace(BASE_DIR, "")
|
||||
file = file.replace(settings.BASE_DIR, "")
|
||||
if func == "<module>":
|
||||
where = ""
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue