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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T03:08:47+00:00 2026-05-28T03:08:47+00:00

I’m pretty new to web development. Lately I have been making a site using

  • 0

I’m pretty new to web development. Lately I have been making a site using Django. I was very interested in implementing websockets in the site. To achieve this I was using django-socketio (available on git hub at https://github.com/stephenmcd/django-socketio). All this was working fine using gevent’s pywsgi server which is suggested in the django-socketio documents.

From reading some books on django it seems that it is recommend to use Django with Apache and mod_python for deployment. At the moment I am unsure of the best way to go about bringing Django, Apache and websockets together. Should I be using the pywsgi server to handle the django-socketio sockets running along side apache to serve the rest of the project? Is there a way in which Apache can handle everything? Should I just not use Django-Socketio? I would really like to use Django and Apache because I know a little about them. Which is a lot more than I know about anything else 😀

Anyway my question is really if anybody knows any good articles or documentation on using Django-socketio and Apache so I can get my head around the topic?

Thank you.

  • 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-28T03:08:47+00:00Added an answer on May 28, 2026 at 3:08 am

    To start with, anything you read suggesting mod_python is highly out-dated. It’s no longer developed and mod_wsgi is the right approach when using Apache.

    As far as I’m aware, mod_wsgi doesn’t support the type of open connections required by WebSockets. A quick search on Google shows that there are ways to get WebSockets working under Apache, but as to how well that would work with the gevent/django-socketio stack is something you’d need to look into.

    I would suggest using gevent’s server as I recommended in the django-socketio docs, for handling the WebSocket connections. Benchmarks should be taken with a grain of salt, but if you take a look at these results you’ll find gevent to be on par with mod_wsgi.

    django-socketio provides the convenience of letting you serve the WebSocket connections as well as regular Django views through a single application instance. If that doesn’t suit you, you could implement these as separate projects, and run the regular Django part under Apache/mod_wsgi.

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

Sidebar

Related Questions

That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have a jquery bug and I've been looking for hours now, I can't
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
I have a French site that I want to parse, but am running into
I have thousands of HTML files to process using Groovy/Java and I need to
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I'm making a simple page using Google Maps API 3. My first. One marker
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
this is what i have right now Drawing an RSS feed into the php,

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.