X-Git-Url: https://git.mdrn.pl/fnpdjango.git/blobdiff_plain/7b2a81536977bb13b68ada3e5a281e35b24e0bfd..8c8820c1d7940085d92cb619ad1d5d6b80660284:/fnpdjango/utils/views.py diff --git a/fnpdjango/utils/views.py b/fnpdjango/utils/views.py index f2270cc..07f3905 100644 --- a/fnpdjango/utils/views.py +++ b/fnpdjango/utils/views.py @@ -2,13 +2,13 @@ View-specific utilities. """ -from django.conf import settings +from .. import app_settings from django.http import HttpResponse, HttpResponseRedirect def serve_file(url): """Serves an URL either though Nginx's X-accel, or by redirection.""" - if settings.X_ACCEL_REDIRECT: + if app_settings.XACCEL: response = HttpResponse() response['Content-Type'] = "" response['X-Accel-Redirect'] = url