Skip to content

Server Considerations

Supragya Raj edited this page Jun 10, 2018 · 2 revisions

AudioFinger - Server considerations

01. Django based server - setting up

10-June-2018 by Nitish

Reference: https://www.ibm.com/developerworks/library/os-django/index.html

I was asked to figure out how to host Django based applications on a dedicated server and what modifications were needed.

Following are the some of the important points that I find worth sharing.

  1. First, You need to deploy Django to a production-grade Web server, such as apache or lighttpd.

  2. There are a few things you need to do in your Django application's settings. It is important to make these changes because any vulnerabilities in your Django application may be made public, thanks to debug error messages, etc. The entire configuring process is described in the link given below.

  3. According to the Django documentation, a setup of the Apache Web server running mod_python is the recommended option for deploying Django applications. Django supports setups with at least Apache HTTP Server V2.0 and mod_python V3.0 and later. mod_python is an Apache module that integrates support for the Python programming language into the Web server.  Again, the process can be thoroughly read from the link mentioned.

  4. Django's developers highly recommend that you do not serve media files (such as images, video, audio, etc.) from the same Web server as your Web application.

You should refer to this link for more information. https://www.ibm.com/developerworks/library/os-django/index.html

These are some of the videos which depict these. https://youtu.be/VNBpdT0N8hw https://youtu.be/L4qHqrvCv3Q