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 6364003
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T00:06:32+00:00 2026-05-25T00:06:32+00:00

I am asking this question because I am a beginner and I’ve read almost

  • 0

I am asking this question because I am a beginner and I’ve read almost 90% of articles speaking about Django, but the problem is:
Django was made and had problems for deploying, it is python, and python is not PHP!
When reading Django tutorials, a beginner is in big problem, because he can find a tutorial “outdated” for example if you take a tutorial made in 2008 you’ll see that they speak like the following:

to deploy django, use apache, and dont forget to use another server
for static files, for example nginx as a reverse proxy!

But now, I found some articles saying that making a second server is useless because in the past, Django was served using mod_python which uses a lot of resources! So here is my question:

  1. Which one is the best for VPS, Apache or Nginx, using the latest release of course! Please dont say: use lighty or cherokee…
  2. If, for example, the answer was: use Ngnix, then, is it better to use one server or two, as in the past it was better to make two webservers?
  3. When I’ve checked my brain, I’ve found that there is only few free space avalaible, so I don’t want to learn something else, so do you think a 100% pythonic solution will be ok? CherryPy does it be a perfect solution, mean, CherryPy + Django and basta! no Apache, no Nginx, no more learning than python language!
  4. From what I’ve read, Django and asynchronous servers are not “good friends”, so does really get a good choise to use Nginx?

Updated: added (4) about Django and asynchronous.

  • 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-25T00:06:32+00:00Added an answer on May 25, 2026 at 12:06 am

    1 – which one is the best for VPS, Apache or Nginx, using the latest
    release of course! please dont say: use lighty or cherokee…

    Either will work fine.

    2 – if for example the answer was: use ngnix, then, is it better to
    use one server or two, as in the past it was better to make two
    webservers?

    The key point that is being made is that Django/Python should not serve your static resources. “Two servers” could be different physical servers, or instances, or virtual servers. Here’s an example of configuring nginx to serve static files directly and then pass dynamic requests to Python:

    From https://code.djangoproject.com/wiki/DjangoAndNginx:

    server {
        listen 80;
        server_name localhost;
        location /site_media  {
            root /media/; # Notice this is the /media folder that we create above
        }
        location ~* ^.+\.(jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|js|mov) {
            access_log   off;
            expires      30d; 
        }
        location / {
            # host and port to fastcgi server
            fastcgi_pass 127.0.0.1:8080;
            fastcgi_param PATH_INFO $fastcgi_script_name;
            fastcgi_param REQUEST_METHOD $request_method;
            fastcgi_param QUERY_STRING $query_string;
            fastcgi_param CONTENT_TYPE $content_type;
            fastcgi_param CONTENT_LENGTH $content_length;
            fastcgi_pass_header Authorization;
            fastcgi_intercept_errors off;
            }
    }
    

    3 – when i’ve checked my brain, i’ve found that there is only few free
    space aviable, so i dont want to learn something else, so do you think
    a 100% pythonic solution will be ok? CherryPy does it be a perfect
    solution, mean, CherryPy + Django and basta! no Apache, no Nginx, no
    more learning than python language!

    IMO, setting up either Apache or nginx is pretty simple and there are lots of resources out there. You don’t need to learn very much about them to setup something simple.

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

Sidebar

Related Questions

Preamble I'm asking this question because even though I've read through a lot of
I am asking this question because I know there are a lot of well-read
I'm not asking this question because of the merits of garbage collection first of
I saw this question asking about whether globals are bad . As I thought
I'm asking this question because I was investigating the Haiku OS (a BeOS descendant).
I'm a seasoned programmer and therefore feel a little embarrassed asking this question but
After asking this question I was advised not to check in binaries into subversion.
I'm asking this question purely from a usability standpoint ! Should a website expand/stretch
The reason for me asking this question is:- I get a real buzz out
My primary motivation for asking this question is this uservoice suggestion . Jeff declined

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.