Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

245
Views
Django Apache Site Loads Forever

I have a Django Site running on an Apache server which is running with no errors but when i serach for localhost it loads forever and doesn't give a 404 response or anything. Any idea what i am doing wrong?

Also, i am doing this using Apache and mod_wsgi.

httpd.conf

Define SRVROOT "c:/Apache24"

ServerName localhost

Include conf/extra/httpd-vhosts.conf

LoadFile "c:/users/administrator/appdata/local/programs/python/python39/python39.dll"
LoadModule wsgi_module "c:/users/administrator/appdata/local/programs/python/python39/lib/site-packages/mod_wsgi/server/mod_wsgi.cp39-win_amd64.pyd"
WSGIPythonHome "c:/users/administrator/appdata/local/programs/python/python39"

httpd-vhosts.conf

<VirtualHost *:80>

ServerName localhost

ServerAlias localhost

WSGIScriptAlias / "C:/Users/Administrator/Desktop/myapp/myapp/wsgi_windows.py"

<Directory "C:/Users/Administrator/Desktop/myapp/myapp/">

    <Files wsgi_windows.py>

        Require all granted

    </Files>

</Directory>

</VirtualHost>

wsgi_windows.py

import os

import sys

import site

from django.core.wsgi import get_wsgi_application

sys.path.append('C:/Users/Administrator/Desktop/myapp/')

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

os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'myapp.settings')

application = get_wsgi_application()
over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

For anyone who gets a similar problem in the future, i used WSGIApplicationGroup %{GLOBAL} which i found out about here and it now works.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!