title: Where to store user uploaded files in Django
body: <p>I'm building a Django app where users will upload a CSV file. Each row in the CSV file will then be added to the DB (after validating the data). The file can then be discarded.</p>
  
  <p>From the Django documentation, I'm using this to save the file.</p>
  
  <pre><code>def handle_uploaded_file(f):
      with open('some/file/name.txt', 'wb+') as destination:
          for chunk in f.chunks():
              destination.write(chunk)
  </code></pre>
  
  <p>There's a lot of warnings on the Django site about handling user uploaded files so my question is, where should these files be saved? My guess is it doesn't matter, but I want to be sure.</p>
  
  <p>At the moment I plan to create a variable called UPLOADS_URL in my settings file. All uploaded files will then be stored in there.</p>