Django on Shared Hosting, VPS, or Dedicated

3 views
Skip to first unread message

H.D. Bien

unread,
May 11, 2013, 8:00:03 AM5/11/13
to publish-the...@googlegroups.com
*****************************************************************

Message delivered directly to members of the group:
publish-the...@googlegroups.com

*****************************************************************

Please consider this free-reprint article written by:
H.D. Bien

*****************************
IMPORTANT - Publication/Reprint Terms

- You have permission to publish this article electronically in free-only publications such as a website or an ezine as long as the bylines are included.

- You are not allowed to use this article for commercial purposes. The article should only be reprinted in a publicly accessible website and not in a members-only commercial site.

- You are not allowed to post/reprint this article in any sites/publications that contains or supports hate, violence, porn and warez or any indecent and illegal sites/publications.

- You are not allowed to use this article in UCE (Unsolicited Commercial Email) or SPAM. This article MUST be distributed in an opt-in email list only.

- If you distribute this article in an ezine or newsletter, we ask that you send a copy of the newsletter or ezine that contains the article to http://www.isnare.com/eta.php?aid=1835761

- If you post this article in a website/forum/blog, ALL links MUST be set to hyperlinks and we ask that you send a copy of the URL where the article is posted to http://www.isnare.com/eta.php?aid=1835761

- We request that you ask permission from the author if you want to publish this article in print.

The role of iSnare.com is only to distribute this article as part of its Article Distribution feature ( http://www.isnare.com/distribution.php ). iSnare.com does NOT own this article, please respect the author's copyright and this publication/reprint terms. If you do not agree to any of these terms, please do not reprint or publish this article.
*****************************

Article Title: Django on Shared Hosting, VPS, or Dedicated
Author: H.D. Bien
Word Count: 856
Article URL: http://www.isnare.com/?aid=1835761&ca=Computers+and+Technology
Format: 64cpl
Contact The Author: http://www.isnare.com/eta.php?aid=1835761

Easy Publish Tool: http://www.isnare.com/html.php?aid=1835761

*********************** ARTICLE START ***********************
In July 2005, Django was released the world. Many years have gone by and developers liked the ideals of Django. The framework gained a huge following of supporters and fans. Django is Python's m
ost popular web framework.

If you're just starting out and shopping around for a hosting service, it may be a scary task. Virtual private servers, or VPS, is a good start if your website requires a lot of resources. When
you're first launching a website or web application, you'll have to decide between shared hosting, virtual private server, and a dedicated server. But how does Django fit into hosting?

Deciding Between Shared Hosts, VPS, or Dedicated Servers

Shared hosting means you'll be sharing a physical servers among several other developers. The resources like CPU and RAM are shared. It's the cheapest option of the three.

A VPS, or Virtual Private Server, has restricted CPU and memory usage. It limits you from using too much, but it also does the same for your neighbors on the same physical machine. Engineers ten
d to choose a VPS as a compromise between dedicated servers and shared services.

You can mess up your production system if you incorrectly install software or fail to patch a security update in time. With a VPS, you'll get root access to the server. This is a double edged sw
ord. You can install whatever software you want.

You also get root access with dedicated servers. Think of a dedicated server as a giant VPS with a lot of RAM and CPU. This is because you get the entire physical server for yourself, so you get
more resources. There's no sharing!

Start your Django website on a shared hosting infrastructure

Django can be deployed on several different shared services. Web engineers have plenty of choices to choose from.

I recommend that engineers start out with shared hosting. It's ideal for smaller websites that don't take up as many resources. Deploying is as simple as pushing the code base to a remote code r
epository. You'll be sharing the resources of a single physical server among multiple customers. Signing up for a VPS means you'll have to manage the server's operating system and software stack
yourself. This means you'll use more time patching the OS and software.

The downsides are that if your neighbor hogs all of the resources, your website will start to feel slow and laggy. Shared hosts is a great way to get started hosting websites. When your website gains in traction, it's time to move on to a virtual private server. Your service will handle maintaining the server software, such as the operating system and Apache.

Shop around for a VPS when your website experiences lag on shared hosting

These are several factors to consider when you're upgrading from shared hosting to a VPS.

Having unmanaged servers means you're expected to apply your own software patches and upgrade the operating system as it gets older. Renting a managed VPS means you won't have to do the system administration by yourself, the hosting service will take care of it for you. Not doing system administration means more time to develop your website. Of course, this comes at an extra monthly price.

You'll save a lot of time by reading support posts, so make sure there's a good community surrounding the VPS service you pick. Check out a company's wiki, support forum, and documentation. You'll run into issues while setting up the Django stack. Other people have run into the same exact issues. You'll find answers in the community website.

Top services, which handle the server infrastructure, tend to cost more. Make sure the service you choose is well within your budget. Cheaper VPS services which comes with low memory rates or less support.

Some companies have terrific support reputation. A vital factor that comes to mind is the quality of support from your VPS service. Do they have a support forum with happy customers? What's their response time to customer queries? Do you need priority support?

Make sure the VPS offers a wide range of Linux distributions, or at least the distribution that you prefer. Some like CentOS for its stability, others like Ubuntu for its ease of use. If you're not sure which distro you prefer, select a VPS with a lot of options.

Setting up Django on your hosting server

Hosts are beginning to officially support the Django framework. A few of them even include GUI installers on their web panels. Django works well on most shared hosts. They usually run Django applications via Apache and FastCGI. Of course, other variants are used like Nginx and WSGI. FastCGI and WSGI are simply protocols that forward the request from web servers to your Django application. They both follow the CGI design pattern, hence the common suffix.


About The Author: Learn about Django and common tools used in development like Git, Subversion, and editors at http://djangohosts.wordpress.com

Please use the HTML version of this article at:
http://www.isnare.com/html.php?aid=1835761
*********************** ARTICLE END ***********************

- To distribute your articles go to http://www.isnare.com/distribution.php
- For more free-reprint articles go to http://www.isnare.com
Reply all
Reply to author
Forward
0 new messages