X-Git-Url: https://git.mdrn.pl/fnpdjango.git/blobdiff_plain/7b2a81536977bb13b68ada3e5a281e35b24e0bfd..1fc5858c6fb90622900aeb2e2102a51d299c305b:/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