skip to Main Content

Django Virtual Environment – No module named 'gunicorn' – Nginx

I've followed this guide (https://www.digitalocean.com/community/tutorials/how-to-set-up-django-with-postgres-nginx-and-gunicorn-on-ubuntu-16-04), but I'm presently seeing the following when trying to run gunicorn via the gunicorn service file (/etc/systemd/system/gunicorn.service): Oct 04 11:30:22 ukgcdeploy01 gunicorn[8095]: File "/opt/envs/automation-console-env/bin/gunicorn", line 5, in <module> Oct 04 11:30:22 ukgcdeploy01 gunicorn[8095]: from gunicorn.app.wsgiapp…

VIEW QUESTION

Nginx Static Files doesn't load Django

Nginx won't load Django static files. Nginx config: upstream backend { server localhost:8000; } server { server_name wavera.ru www.wavera.ru; location / { include proxy_params; proxy_pass http://backend; } listen 443 ssl; # managed by Certbot ssl_certificate /etc/letsencrypt/live/www.wavera.ru/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/www.wavera.ru/privkey.pem; include /etc/letsencrypt/options-ssl-nginx.conf;…

VIEW QUESTION

Static files are not found (gunicorn) – Nginx

I know this question was already asked frequently. But the supposed solutions seem not to help me. Here is my Nginx definition for the static files location /static/ { alias /data/atsi_webapp/ATSi_WebApp/static; } Here my Django settings BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) STATIC_ROOT…

VIEW QUESTION
Back To Top
Search