Use the "standard" django way to get at the settings.

- Legacy-Id: 162
This commit is contained in:
Bill Fenner 2007-05-24 17:36:25 +00:00
parent b8aa94d007
commit 78186c7406

View file

@ -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: