![centos 7 static ip command line centos 7 static ip command line](https://i.stack.imgur.com/Lx6VN.png)
djangoprojectenv) djangoproject] # django-admin.py startproject myfirstproject. Once Django is installed in the directory, create first Django project using the following command. You should see something similar to: 1.11.18
![centos 7 static ip command line centos 7 static ip command line](https://i.ytimg.com/vi/iR8tkdDLaK4/maxresdefault.jpg)
(djangoprojectenv) djangoproject] # django-admin -version Once the installation is completed, you can verify the Django version using the following command.
#Centos 7 static ip command line install
djangoprojectenv) djangoproject] # pip install django Install Django in the djangoprojectenv shell using pip command. sudo source djangoprojectenv /bin/activate
![centos 7 static ip command line centos 7 static ip command line](https://i.ytimg.com/vi/U_znfbYGiyw/maxresdefault.jpg)
cd /opt/djangoproject sudo virtualenv djangoprojectenvĮnable the virtual environment to install packages. sudo mkdir /opt/djangoprojectĬreate a Python virtual environment using the following commands. sudo pip install virtualenvĪfter installing the “virtualenv” create a project directory for Django. So you will need to install “virtualenv”. Install Djangoīefore installing Django, it is required to create the Python virtual environment. Proceed to the next step once the installation is completed. sudo yum install python2-pip httpd mod_wsgi -y sudo yum install epel-release -yĪfter enabling the EPEL repository, you can install Apache and other required packages using the following command. Install the EPEL repository on your server using the following command. It will install all the latest patches and security updates to your system. (We are using IP 10.10.1.4 as an example)īefore starting the configuration, update the server with the latest version using the following command. Static IP address configured on your system.In this article, we will explain the procedures to configure Django with Apache in CentOS 7. Django is a Python-based free and open-source web framework that can be used for developing dynamic websites and web applications.