DEV Community

Discussion on: Flask Deploy with Apache on CentOS - Minimal Setup

Collapse
 
sm0ke profile image
Sm0ke • Edited

Hello @dlink ,

Indeed the app/\_\_init\_\_.py cannot be formatted being styled automatically by the Markdown parser.

Regarding the Python version, try to force the PATH update in wsgi.py as below

site.addsitedir('/data/apps/hitme/.venv/..../site-packages')
sys.path.insert(0, '/data/apps/hitme/')
Enter fullscreen mode Exit fullscreen mode

P.S. adapt the paths to be resolved properly.
Let me know the results.