Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6344555
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T20:39:43+00:00 2026-05-24T20:39:43+00:00

I would like to get a virtual hosting for my django application, however storage

  • 0

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?

Thank you.

note

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.

edit

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 Running a Separate Media Server (link):

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.

But there is no details on how this can be achieved.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T20:39:43+00:00Added an answer on May 24, 2026 at 8:39 pm

    Nothing is preventing you from pointing your URLs at a different host in your (X)HTML output.

    If your shared hosting account sits at, for example, http://awesome-hosting-provider.com/~myname/, you can set MEDIA_URL in your settings.py to this value, make sure to use RequestContext when rendering and to have django.core.context_processors.media included in TEMPLATE_CONTEXT_PROCESSORS (note it is in there by default) and then you can just use {{ MEDIA_URL }} to prefix your URLs in templates.

    Even the admin will work with this, as long as you copy all its required static files over to the shared environment to make them accessible.

    Since you also need to take care of file uploads, as the book says, you’ll have to make it possible to write to the storage location (on the shared server) from your Django deployment. There are several ways of achieving this.

    The easiest would probably be to mount the top-level directory of your storage environment on your virtual server using SSHFS with the right options (like reconnect, reasonable timeouts etc.). This requires SSH access to the shared environment, of course. To make things easier, setting up a SSH authentication key pair might come in handy.

    Alternately, you can try NFS if your shared hosting provider allows you to do that, although I find it improbable to say the least.

    If everything else fails, you’ll have to set up a webservice of some kind on your shared environment that would listen to uploads from your Django deployment and make the Django app forward them. In this case, however, hou’ll have to make sure it is safe enough and no malicious user will be able to compromise your storage server by directly talking to it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Would like to get a list of advantages and disadvantages of using Stored Procedures.
I would like to get data from from different webpages such as addresses of
I would like to get up-to-date information on Google's index of a website, and
I would like to get the path to the execution directory of a Windows
I would like to get the absolute position of an element in relation to
I would like to get a list of the wireless networks available. Ideally this
I would like to get all the instances of an object of a certain
I'm a lone developer who would like to get some structure to my projects.
I have taken over a large code base and would like to get an
I am running C# framework 2.0 and I would like to get some of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.