fix minor deployment error
[fnpdjango.git] / fnpdjango / utils / views.py
index f2270cc..07f3905 100644 (file)
@@ -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