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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T06:44:06+00:00 2026-06-17T06:44:06+00:00

Setting up my first app. I started on the django development server, and am

  • 0

Setting up my first app. I started on the django development server, and am now moving things to an apache setup so that I can code in my target prod environment. I’ve gotten mod_wsgi set up successfully and got a successful “Hello World!”. Now I’m having issues actually getting my app to respond in apache the way it did in the django dev server.

Here’s my directory structure:

  • /var/www/www.example.com/ [site directory]

    • Example [my app]

      • wsgi.py

      • settings.py

    • users [another django module i wrote]

    • trips [yet another django module i wrote]

Now, in my virtual host file, I have the following line:
WSGIScriptAlias / /var/www/www.example.com/Example/wsgi.py

And in my wsgi.py file, I have the following lines:

sys.path.append('/var/www/www.example.com/Example')
sys.path.append('/var/www/www.example.com/trips')
sys.path.append('/var/www/www.example.com/users')

Yet, here’s the error I’m getting:

[Sun Jan 06 21:37:46 2013] [error] [client 127.0.0.1] ImportError: No module named trips

What do I need to do to get django and mod_wsgi to recognize my trips and users apps?

Thanks!

  • 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-17T06:44:07+00:00Added an answer on June 17, 2026 at 6:44 am

    don’t add every module to sys.path.
    Instead you should add /var/www/www.example.com to sys.path.

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

Sidebar

Related Questions

I am creating an app that requires some settings to be set first before
I'm setting up my first development Linux box - a netbook actually. I'm quite
A couple of weeks ago i have started my research in Iphone app development
I am setting my first steps in OSX development and I've run into some
I'm just getting started with my first app engine site. I followed the hello
I just started doing some Android app development, and I decided I'm going to
I started an ASP.NET MVC 4 app in an old project, then stopped development
Every first time your app is sending local notification to lock screen you can
I started to create in Django sample project, first command: django-admin.py startproject test gives
I have an application that can be started from the web via a URI

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.