Where Should I Host a Django Application?

Discussion in 'Mac Programming' started by ArtOfWarfare, Jun 12, 2014.

  1. ArtOfWarfare macrumors 604

    ArtOfWarfare

    Joined:
    Nov 26, 2007
    #1
    I've never done this kind of thing before, so I'm not sure if my terminology is right, but here goes:

    I have a development server running on my iMac right now that consists of Apache, MySQL, and a Python application that uses Django and Django Rest Framework.

    When it's time to release the public version of this, I'm going to need a real server. If this is hugely successful and I end up with the budget for this kind of thing, I'll bring the servers in house, but initially, I figure I should rely on another service that already has all the server infrastructure and maintenance crew and whatnot set up.

    Has anyone done this before? Can you either tell me exactly what I need to do or point out a tutorial that shows me exactly what I need to do?
     
  2. Ap0ks, Jun 12, 2014
    Last edited: Jun 12, 2014

    Ap0ks macrumors 6502

    Joined:
    Aug 12, 2008
    Location:
    Cambridge, UK
    #2
    There really is no point in wasting CapEx on servers if it successful, choose a cloud provider and let them deal with hardware-related costs. You move from on-prem hosting to cloud-based hosting not the other way round, unless you really have a huge need to do so ;)

    Places to look would be Heroku, AWS Elastic Beanstalk, Openshift, DigitalOcean and linode among others. Here's a link to a getting started with Django on Heroku guide, however for most general hosting companies you'll get a virtual machine that you then install Django on yourself.
     
  3. Cromulent macrumors 603

    Cromulent

    Joined:
    Oct 2, 2006
    Location:
    The Land of Hope and Glory
    #3
    Yep. Don't rush into running your own servers. Buying the hardware and colocating it in a datacentre can be pretty pricey and then you need to factor in the cost of keeping spare parts as well in case you have hardware failures etc. Leave it to an existing company to handle the hardware side of things for you.

    As someone who has used both Linode and Digital Ocean I'd highly recommend Linode as a web host for running Django applications. They have excellent hardware, reasonable prices and decent specs for their VPS instances.

    Of course with Linode and Digital Ocean you'll be in charge of system administration so make sure you know what you are doing with Linux before jumping in.

    Is there any particular reason you are using MySQL? PostgreSQL is the much preferred option as a database server in the Django community for good reason. If you don't have anything keeping you on MySQL I'd make the move now before you waste time and money on your MySQL deployment.

    If you must stick with MySQL then use a MySQL compatible database such as MariaDB instead. Oracle are not the most trust worthy company in the world when it comes to open source.
     

Share This Page