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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T02:12:11+00:00 2026-05-23T02:12:11+00:00

While trying to connect through the browser to my django app I’m getting the

  • 0

While trying to connect through the browser to my django app I’m getting the following exceptions (in var/log/httpd/error_log):

[Fri Jun 10 18:02:03 2011] [error] [client 167.206.188.3] mod_wsgi (pid=3550): Exception occurred processing WSGI script '/var/www/cgi-bin/django.wsgi'.
[Fri Jun 10 18:02:03 2011] [error] [client 167.206.188.3] TypeError: __init__() takes exactly 1 argument (3 given)
[Fri Jun 10 18:02:04 2011] [error] [client 167.206.188.3] mod_wsgi (pid=3551): Exception occurred processing WSGI script '/var/www/cgi-bin/django.wsgi'.
[Fri Jun 10 18:02:04 2011] [error] [client 167.206.188.3] TypeError: __init__() takes exactly 1 argument (3 given)

this is the content of /var/www/cgi-bin/django.wsgi:

import os
import sys

paths = ['/usr/lib/python2.6/site-packages/', '/usr/lib/python2.6/site-packages/django/', '/usr/lib/python2.6/site-packages/django/reuters' ]
for path in paths:
    if path not in sys.path:
        sys.path.append(path)

os.environ['DJANGO_SETTINGS_MODULE']='reuters.settings'

import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler

and the contents of: /etc/httpd/conf.d/python26-mod_wsgi.conf:

<IfModule !python_module>
    <IfModule !wsgi_module>
        LoadModule wsgi_module modules/python26-mod_wsgi.so
        WSGIPythonEggs /var/www/.python-eggs/
    </IfModule>
</IfModule>

<VirtualHost *:80>
    Alias /static /usr/lib/python2.6/site-packages/django/reuters/rca/static

    # WSGI Settings
    WSGIScriptAlias / /var/www/cgi-bin/django.wsgi

    <Directory "/var/www/cgi-bin">
        # Allow Apache to follow links
        Options FollowSymLinks
        # Turn on the ability to use .htaccess files
        AllowOverride All
        # Controls who can get stuff from this directory
        Order allow,deny
        Allow from all
    </Directory>

    <Directory "/usr/lib/python2.6/site-packages/django/reuters/rca/static">
        # Allow Apache to follow links
        Options FollowSymLinks
        # Turn on the ability to use .htaccess files
        AllowOverride All
        # Controls who can get stuff from this directory
        Order allow,deny
        Allow from all
    </Directory>

</VirtualHost>
  • 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-23T02:12:12+00:00Added an answer on May 23, 2026 at 2:12 am

    try

    application = django.core.handlers.wsgi.WSGIHandler()
    

    (You’re missing the parentheses.)

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

Sidebar

Related Questions

While trying to connect to a database that's set to read only, the connection
Sorry answer found while typing I am trying to connect to an external webservice
I'm trying to connect to a TFS2008 server through Visual Studio 2008 (Tools\Connect to
I'm trying to upload an iPhone app binary to iTunesConnect and keep getting the
My application times out while trying to connect to host. The timeout time is
I am trying to connect two widgets through the signals/slots option but I keep
Through the following piece of Android code, I connect to an html page on
I am trying to write an app that will connect to a database, extract
I am trying to connect to a website. After While authentication is successful, I
While trying to generate classes from a xsd, i got this error: java.lang.IllegalArgumentException: Illegal

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.