![]() Or get a requirements file with pip freeze > requirements.txt and then install it with ![]() Install all the library dependencies of the Django project Install mod_wsgi module into the virtual environmentĬopy the output to get the configuration required by Apache "D:path\to\project-root\venv\Scripts\activate" Set "MOD_WSGI_APACHE_ROOTDIR=C:\Apache24" Windows expects mod_wsgi to be compiled using Microsoft Build Tools.īecause of this it is necessary to follow these steps from a CMD: Installation of the mod_wsgi model and its configuration using Apache's WSGIDaemonProcess method available on Linux is not compatible with Windows. Screenshot of the configuration required during installation. Installation requires about 4 gigabytes and you can download the installer here. In Windows it is necessary to compile the mod_wsgi module to be able to use it and for this it is necessary to have Microsoft Build Tools installed. ![]() We will use the Apache 2.4 version of the lounge page, downloadable from here.Įxtract the ZIP file to the root of the C:/ drive, so that this result is obtained C:/Apache24. virtualenv "D:\path\to\project-root\venv" Install Apache Install Python Virtual EnvironmentĬreate a python virtual environment in the main root of the Django project. In installation options select add python to PATH and install launcher for all users. You are familiar with the basic administration of Apache, as this tutorial will only cover the simple installation of the server itself and the configuration changes necessary to pair Django with Apache.įor this guide we will use Python version 3.8.3, which can be downloaded here.īe sure to install the corresponding one for your system based on its bits 64 or 32 (x86), you can find out the bits of your system by right-clicking on start and clicking on System, and reading the information under the device specifications.You already have a Django project, as this article is not intended to explain the configuration or creation of a Django application.Basic knowledge of Python, pip package manager and virtualenv to create virtual environments.You have a Windows computer ready with administrator permissions. ![]() In this guide we will cover the deployment of a Django project in Apache using Windows 10 and the required compilation of the mod_wsgi module. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |