Serve a Django application using Gunicorn

Create systemd service file vi /usr/lib/systemd/system/backend.service Add [Unit] Description=Gunicorn instance to serve Django Application After=network.target [Service] User=www-data Group=www-data Environment=”APP=app” WorkingDirectory=/path/to/app/backend

ModuleNotFoundError: No module named ‘MySQLdb’

When running migration for a Django application with “python manage.py migrate”, I got the following error message ModuleNotFoundError: No module

error: invalid command ‘bdist_wheel’

When installing a python module on Ubuntu, I got the following error message error: invalid command ‘bdist_wheel’ The error is

How to install Python 3.10 on CentOS 7

First, install the dependency yum install -y wget zlib-devel yum groupinstall -y “Development tools” Install OpenSSL as the openssl-devel package

ModuleNotFoundError: No module named ‘PIL’

When running a python application, I got the error message ModuleNotFoundError: No module named ‘PIL’ (venv) boby@sok-01:~/work/powder (master)$ python main.py

This version of ChromeDriver only supports Chrome version

When running a python application, I get the error message (venv) boby@sok-01:~/work/powder (master)$ python main.py 59 seconds remaining Process Process-1:

OSError: mysql_config not found

When installing the python mysqlclient module with pip, I got the error “OSError: mysql_config not found”. (venv) root@sok:~# pip install

Uvicorn

Uvicorn is a lightning-fast ASGI server used to serve Python ASGI frameworks like FastAPI, Django Channels, Quart, BlackSheep, etc… https://www.uvicorn.org

Flask Python framework

Flask Python framework

Flask is a Python framework. You can find more info at the official website. https://flask.palletsprojects.com/ How to start a Flask

Python mechanize HTTP Error 403 request disallowed by robots.txt

When running following python script i get error “HTTP Error 403 request disallowed by robots.txt” from mechanize import Browser a

error: Python.h: No such file or directory

When install dlib python module, i get error ERROR: Failed building wheel for dlib fatal error: Python.h: No such file

ERROR: Failed building wheel for mysqlclient

ERROR: Failed building wheel for mysqlclient

When install mysqlclient python module, i get error (venv) boby@sok-01:~/Downloads/django-deploy$ pip install mysqlclient==1.4.2.post1 Collecting mysqlclient==1.4.2.post1 Using cached https://files.pythonhosted.org/packages/f4/f1/3bb6f64ca7a429729413e6556b7ba5976df06019a5245a43d36032f1061e/mysqlclient-1.4.2.post1.tar.gz Building wheels