How to add Django after installing Python 3.6 in whm via ssh? - django

I have a VPS and it does not provide a one-click Python Installation as some other VPS services do. After many failed attempts I finally installed Python 3.6.3 via my WHM ssh.
Can someone guide me on how to set up Django next and proceed to development?

Related

Rasa not installing on Digital Ocean

I am trying to install rasa 2.0.0 on digital ocean. I created a directory for the bot and created a virtual environment using ubantu 20.04 and python 3.8.5. After the virtualenv is activated i ran pip install rasa==2.0.0 as well as pip3 install rasa==2.0.0.
The installation goes upto tensorflow installation and killed word is appearing. It exits the process but on rasa or rasa train it doesn't execute. There were no errors too.
I have a django website serving on the ip and want this bot to serve through a different port to clients having websites. Can you please suggest how can I proceed ??
The minimum ram for the droplets to install RASA is 4.0 due to tensorflow.

How to Install Pillow on Openshift

I'm trying to deploy my django web application on OpenShift. When I try to deploy it I get this error:
I have no idea how I can access the terminal in the openshift to install pip.
Add pillow==6.2.1 on your requirements.txt and deploy again, OpenShift will read thi's file and install all requirements.

How do i install ddev on Digital ocean

Digital ocean has a simple way to setup Ubuntu 16.0 which comes with docker 17.10 and docker-compose 1.1.
However, due to some issues with 17.10, you might have issues working with, but ddev can still run very well on docker 17.10, just to avoid future issues, you can follow the steps in the answer below.
Digital ocean wont cost you much to set up, it comes with free 100 USD credit and spinning a new server cost 0.003/hour
To start
Register on Digital ocean
Create a new droplet(select Ubuntu 16.04), like i said in the question above, you can decide to follow one-click app installation which comes with docker && docker-compose but with old versio, but they still met the ddev requirements.
Digital ocean; how to install ddev
Your login credentials will be sent to your email
your new droplet comes with fresh Ubuntu installation and you can proceed to install docker, docker-compose and ddev
Installing docker
To install docker follow this doc to have latest docker on your machine
Installing docker compose
To install docker compose follow this doc.
Finally
Install ddev by following official ddev documentation

Setting up SSL Certificate using mod_wsgi

I have developed a Django 1.8 application using Python 3.3. I am trying to deploy the application on a university dedicated server with Red Hat Enterprise Linux Server release 7.2 (Maipo). (Note: RHEL does not let me install newer versions of Django and Python)
I had difficulty with installing mod_wsgi using the RHEL Apache and I ended up installing:
pip install -U mod_wsgi-httpd
pip install mod_wsgi
Everything works perfectly when I use the following setup:
python manage.py runmodwsgi --setup-only --port=80 --user=iman --group=root --server-root=/etc/mod_wsgi-express-80
However, when I want to setup HTTPS, using the following setup does not return any error message, but the website does not show up neither with http:// nor with https:// prefixes.
python manage.py runmodwsgi --setup-only --port=80 --user=iman --group=root --server-root=/etc/mod_wsgi-express-80 --https-only --https-port=443 --ssl-certificate-file=/etc/sslcert/iman.crt --ssl-certificate-key-file=/etc/sslcert/private/iman.key --ssl-ca-certificate-file=/etc/sslcert/certs/ca-bundle.crt --server-name=iman123.university.edu
Here are helpful resources that I found about mod_wsgi:
mod_wsgi docs
GitHub repository
Running HTTPS and client authentication with mod_wsgi-express
pip install mod_wsgi-express left out mod_ssl.so
Thank you so much for your time and concern and apologies in advance if I am doing something wrong.

Best environment to install centos 7 on laptop to use system as web server

I want to install centos 7 on laptop to use system as a web server.
I'll use this server for hosting a django project, so I need to install python and django after centos installation manually.