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

77
Views
Django installation issues

I configured Django and Apache on an ec2 server with a connection to a remote rds server, which is working fine. I can access the ec2 server and the database (via ssh to the ec2 server and then to the rds server), I tried to run a migration with sudo python manage.py and it worked; the database shows my tables.

I use a virtual environment with the Python mod_wsgi installed which is loaded in the apache2.conf and in the 000-default.conf. I have the wsgi daemon process, and script references.

When I try to run the application through my browser I get a 500 internal server error with the following error message:

django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module. Did you install mysqlclient? mod_wsgi (pid=7875): Target WSGI script '/var/www/wuyeguanli/wuyeapp/wuyeapp/wsgi.py' does not contain WSGI application 'application'.

the complete error message:
the complete error message

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

the first time around i installed the python packages in both root and the virtual environment. doing a clean configuration solved the problem.

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!