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

  • SEARCH
  • Home
  • 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 6866729
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T03:13:18+00:00 2026-05-27T03:13:18+00:00

I have finished my first Django/Python Project and now I need to put the

  • 0

I have finished my first Django/Python Project and now I need to put the things working in a real production webserver.

I have read some papers over the Internet and I’m inclined to choose Ngix, Gunicorn and Git but the documentation that I found is not very complete and I have many doubs if this is the best option.

What do you think about this subject? I need a simple way to put my Django Project on-line but the website is still very buggy, I will need to change the code many times in the production server in the times ahead.

Please give me some clues about what I should do. I’m kind of lost…

Best Regards,

  • 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-27T03:13:18+00:00Added an answer on May 27, 2026 at 3:13 am

    This is a good blog entry that covers deploying Django using Nginx and Gunicorn. I’ll give you a quick rundown of what makes all the different technologies important:

    Git

    Git, or any other version control system, is certainly not required. Why it lends itself to deploying Django projects is that your usually distributing your application by source, i.e. your not compiling it or packaging it as an egg. Usually you’ll organize your Git repository as such that updating your application on the server only requires you to do a checkout of the latest sources–nothing else.

    virtualenv and pip

    This, again, is not a strict requirement, but I’d strongly suggest you take the time to familiarize yourself with virtualenv and pip if you already haven’t done so, since it’s going to make deploying your Python applications across different runtime environments, local or remote, a breeze.

    Basically, your project will need to have at least Django and Gunicorn available on the Python path, possibly even a database driver. What that means is that every time you try to deploy your application somewhere you’ll have to install Python and do the easy_install dance all over.

    virtualenv will redistribute a Python installation, which in turn means that the new Python instance will, by default, have it’s very own Python path configuration relative to the installation. pip is like easy_install on steroids, since it supports checking out Python dependencies directly from code repositories and supports a requirements file format with which you can install and configure all of your dependencies in one fell swoop.

    With virtualenv and pip, all you’d need to do is have a simple text file with all your dependencies that can be parsed with pip and an installed Python distribution on the machine. From there you just do git checkout repo /app/path; easy_install virtualenv; virtualenv /app/path; ./app/path/scripts/activate; pip install -r /app/path/requirements.txt. Voila, Gunicorn, Django and all other dependencies are then installed and available immediately. When you run the Gunicorn Django script with the Python instance in /app/path/scripts, then the script will immediately have access to the Gunicorn sources and it will be able to locate your Django project which will have access to Django and other dependencies as well.

    Nginx

    Web servers will primarily be used to server static media. Everything else gets proxied to your Gunicorn instance that manages your Django instance, since it’s primary purpose is to host Python WSGI applications and not to act as a general purpose Web server and conversely your Web server doesn’t need to be able to handle Python applications.

    Why Nginx is often used is that it’s lightweight and exactly suited for serving static media and proxying requests. It comes with way less bells and whistles than, say, Apache, which makes it all the more easier to configure and maintain, least to mention it’s going to be more resource effective if your already strained.

    Gunicorn

    This is the actual Python application that will manage your Django instance and provide an HTTP interface that exposes it to HTTP clients. It’ll start several worker processes which will all be distinct Python virtual machines loaded with the sources of your application and it’s dependencies. The main Gunicorn process will in turn take charge of managing which worker processes manage which requests for maximum throughput.

    The basic principle of wiring Nginx and Gunicorn

    The most important thing to observe is that Nginx and Gunicorn are separate processes that you manage independently.

    The Nginx Web server will be publicly exposed, i.e. it will be directly accessible over the internet. For requests to static media, such as actual images, CSS stylesheets, JavaScript sources and PDF files accessible via the filesystem, Nginx will take charge of returning them in the response body to HTTP clients if you configure it to look for files on the path where you configured your project to collect static media.

    Any other request should be proxied to your Gunicorn instance. It will be configured to listen to HTTP requests on a certain port on the loopback interface, so you’ll using Nginx as a revers proxy to http://127.0.0.1:8080 for requests to your Django instance.

    This is the basic rundown for deploying your Django projects into production that should satisfy the needs of 95% Django projects running out there. While I did reference Nginx and Gunicorn, it’s the usual approach when it comes to setting up any Web server to act as a reverse-proxy to a Python WSGI server.

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

Sidebar

Related Questions

I have pretty much finished my first working Symbian application, but in my hastened
I have just finished my first real commercial application written in C++ / MFC.
I need to delete my input file securely once I have finished with it,
I have just finished ridding my project of leaks, but there are still thousands
My software handles multiple operations on files, and I have now finished writing the
I'm just about finished my first release of automailer, a program I've been working
I have Finished Designing my first Crystal Report using ASP.NET, I am Providing user
I finished first year comp sci. And i want to spend some time working
I have finished developing the core of a web application I have been working
I have finished my first application and published in android marketplace ( https://market.android.com/details?id=Mobilesoft.asia.numbers&feature=search_result )

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.