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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T01:22:03+00:00 2026-06-18T01:22:03+00:00

I installed up apache2 on Ubuntu and installed Django and mod_wsgi. I then created

  • 0

I installed up apache2 on Ubuntu and installed Django and mod_wsgi. I then created a virtual host in apache called mydomain.com and modified my hosts file to direct that address to 127.0.0.1 and finally, I tested my website by running python manage.py runserver and it is working. However, when I browse to http://mydomain.com instead, I get a 500 error page. Looking at apache error logs this is what I got:

[Wed Jan 30 20:53:31 2013] [error] [client 127.0.0.1] mod_wsgi (pid=2935): Exception occurred processing WSGI script '/var/django/mydomain/mydomain.wsgi'.
[Wed Jan 30 20:53:31 2013] [error] [client 127.0.0.1] Traceback (most recent call last):
[Wed Jan 30 20:53:31 2013] [error] [client 127.0.0.1]   File "/usr/lib/python2.7/dist-packages/django/core/handlers/wsgi.py", line 250, in __call__
[Wed Jan 30 20:53:31 2013] [error] [client 127.0.0.1]     self.load_middleware()
[Wed Jan 30 20:53:31 2013] [error] [client 127.0.0.1]   File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 39, in load_middleware

And here is the content of mydomain.wsgi

import os
import sys
sys.path.append('/var/django/mydomain')
os.environ['DJANGO_SETTINGS_MODULE'] = 'mydomain.settings'
import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()

I do NOT have a file named mydomain.settings (should I create one?) and it is my first time using django. Please advise.

  • 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-06-18T01:22:04+00:00Added an answer on June 18, 2026 at 1:22 am

    The value of DJANGO_SETTINGS_MODULE should be just 'settings'.

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

Sidebar

Related Questions

I have installed my django application on one of my subdomains .. subdomain1.mydomain.com using
I have django+python+apache2+mod_python installed hosted and working on ubuntu server/ linode VPS. php5 is
I recently re-installed my Ubuntu PC (to 12.04) & had to re-setup apache. local.domain.com
I installed Apache in it's default directory under C:\Program Files\Apache Software Foundation\Apache2.2 . During
Hie all, i have installed apache2 server on my ubuntu 12.04 system, now i
I am new to PHP.I have MySql,PHP and Apache2 installed in my ubuntu.and i
How can I check whether apache is installed with php and mysql on Ubuntu
I just installed passenger (apache2) on my ubuntu server to deploy my rails 3.1
I've installed apache2 and ColdFusion 9 on an Ubuntu 12.04 box. I've already use
I've been testing usage of apache authentication, following this example . I'm using Ubuntu/Apache2.

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.