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

The Archive Base Latest Questions

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

I thought the very same mechanism would work both for development server and Apache

  • 0

I thought the very same mechanism would work both for development server and Apache as my web server but I am currently really confused.

I can access a URL whilst using the Django development server as follows

__http://devserver/my_application/

When I switch my web server to Apache, I am getting Django 404 errors for all URLs.py entries.

trying to access __http://devserver/ returns the following

Using the URLconf defined in antrum.urls, Django tried these URL patterns, in this order:
^my_application/$
^my_application/?page=(?P<page>\d+)
^my_application/new
^my_application/(?P<candidate_id>\d+)/$
^my_application/(?P<candidate_id>\d+)/update/$
^my_application/(?P<candidate_id>\d+)/delete/$
^my_application/search/$
^admin/doc/
^admin/
The current URL, , didn't match any of these.

Trying to access http://devserver/my_application/ results the following output

{'path': u'my_application/'}

I am probably making a lame mistake but can not get to see that now. What might have I been missing to check?

Here’s my Apache configuration

<Location "/">
    SetHandler python-program
    PythonHandler django.core.handlers.modpython
    SetEnv DJANGO_SETTINGS_MODULE project.settings
    PythonOption django.root /
    PythonDebug On
    PythonPath "['/home/user/','/home/user/project/'] + sys.path"
</Location>

<Location "/media/">
    SetHandler None
</Location>  

Here are my findings:

  • Switching to manage.py runserver solves my problem
  • Apache Error.log has no entries
  • When I set the Environment variable for pythonpath and use the python CLI, I can access my models, which also IMHO leaves the python path option off of this
  • __http://devserver/my_application and __http://devserver/my_appTYPO gives the same error message with different {u’path’: …} output
  • 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-19T02:25:12+00:00Added an answer on May 19, 2026 at 2:25 am

    Don’t set django.root variable when mounting at the root of the web site. That should only be used where mounting at a sub URL.

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

Sidebar

Related Questions

I'm very new to Regular Expressions, but I thought it'd be the best way
I'm on a quest to reduce my very bloated home page application in development.
As I was working on a project, I thought to myself Hmmm, it would
This is one of the strangest errors I've ever seen. I'm doing a very
What's the best practice for creating drop shadows around html where the html can
I used the bundled Property List Editor of Mac OS X Developer Tools to
I am for a long time trying to get a picture how is program
I want to create a website for training multiple choice questions, the problem is
I have a framework that I am building and is being compiled into a
I have seen some people leaning on handing methods to callbacks/events and then sometimes

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.