Gunicorn failed to load Flask application
问题 I have a Flask app I am trying to serve via Gunicorn. I am using virtualenv and python3. If I activate my venv cd to my app base dir then run: gunicorn mysite:app I get: Starting gunicorn Listening at http://127.0.0.1:8000 DEBUG:mysite.settings:>>Config() ... Failed to find application: 'mysite' Worker exiting Shutting down: master Reason: App failed to load Looking in /etc/nginx/sites-available I only have the file 'default'. In sites-enabled I have no file. In my nginx.conf file I have: