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

441
Views
Gunicorn cannot find modules

I am trying to run a django-docker image via gunicorn. However, gunicorn does not find my modules.

I tried to use gunicorn in a venv. (adding CMD exec source venv/bin/activate in the Dockerfile.) This is also not working. What am i doing wrong?

Dockerfile

FROM python:3.6.7
MAINTAINER Jasper
ADD . /usr/src/app
WORKDIR /usr/src/app
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
EXPOSE 8000
CMD exec gunicorn bomt_project.wsgi:application --preload --bind 
0.0.0.0:8000 --workers 3

I expect the server to be running on port 8000. The output however is ModuleNotFoundError: No module named 'widget_tweaks'

over 4 years ago · Santiago Trujillo
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!