X-Git-Url: https://git.mdrn.pl/fnpdjango.git/blobdiff_plain/7b2a81536977bb13b68ada3e5a281e35b24e0bfd..56089af0e8c5732caaa777ee0691d9ae7a557d31:/fnpdjango/utils/views.py?ds=sidebyside 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