title: Serving static files with dynamic URLs using nginx
body: <p>I have some static files that I would like to serve, and I aware that Django and Python are not suitable for serving static files in a production environment.</p>
  
  <p>My current set up is nginx with python/django behind it wither via nginx_fastcgi or uwsgi workers. Nginx serves up static files like the CSS and the Javascript, and all the dynamic pages are passed on to python to generate.</p>
  
  <p>However there are urls like <code>/user/input/battleships.in</code>. Here <code>battleships.in</code> is a static file located on the filesystem at `$MEDIA_ROOT/users/$request.user.username. Is there a way to have django determine the correct url, and then proxy the request back to nginx to serve the static file?</p>