Install Django

Django is a free and open-source high-level Python Web framework. Being a Python Web framework, Django requires Python What Python version should I use with Django? Python 3 is recommended. Django 1.11 is the last version to support Python 2.7. Support for Python 2.7 and Django 1.11 ends in 2020. Since newer versions of Python […]

Read More

How to Deploy Django Apps using Apache with mod-wsgi and nginx

Django is a free and open-source high-level Python Web framework. Being a Python Web framework, Django requires Python. In this guide, we will demonstrate how to install and configure Django. We will then set up Nginx and Apache to sit in front of our Django application. We will also be using the mod_wsgi Apache module […]

Read More

Apache run python script

Install python & python3 and run python scripts with apache on your CentOS WebPanel server. Install python yum install python Install python3 yum install python3 Check python version python -V Check python3 version python3 -V Create a test script cd /home/USERNAME/public_html mkdir cgi-bin nano cgi-bin/test.py Python2 test script in the file: /home/USERNAME/public_html/cgi-bin/test.py #!/usr/bin/python # enable […]

Read More