title: Django - How to setup separate media/static server on shared hosting?
body: <p>I would like to get a virtual hosting for my django application, however storage space is rather expensive on virtual-hosting, so I would like to use a shared hosting provider to store the media/static content of the web site since it is a lot cheaper. How can I get this done?</p>
  
  <p>Thank you.</p>
  
  <p><strong>note</strong></p>
  
  <p>For my application I need to run specialized libraries (e.g. matplotlib) which cannot be installed on shared-hosting, therefore I will not be able to run Django on shared-hosting using FastCGI.</p>
  
  <p><strong>edit</strong></p>
  
  <p>To clarify the question, I will need to be able to upload in django and store the content on the shared hosting. Here is a quote from a django book from the section <code>Running a Separate Media Server</code> (<a href="http://www.djangobook.com/en/2.0/chapter12/" rel="noreferrer">link</a>):</p>
  
  <blockquote>
    <p>This step can be slightly tricky, however. If your application
    involves file uploads, Django needs to be able to write uploaded media
    to the media server. If media lives on another server, you’ll need to
    arrange a way for that write to happen across the network.</p>
  </blockquote>
  
  <p>But there is no details on how this can be achieved.</p>