Fixing STATIC_FORMS_ROOT search path

This commit is contained in:
Mark Riedesel 2013-11-10 20:31:21 -06:00
parent 440163e504
commit 77713d81b0
3 changed files with 9 additions and 3 deletions

View file

@ -15,7 +15,7 @@ class PopplerController(object):
search = [
os.path.abspath(pdf),
os.path.abspath(os.path.join(settings.STATIC_FORMS_ROOT, pdf)),
os.path.abspath(os.path.join(getattr(settings, 'STATIC_FORMS_ROOT', ''), pdf)),
]
for path in search: