[PYTHON] (Note) Django in Vagrant environment

** mod_wsgi ** seems to bridge it, so install it (there seems to be other ways, but this time)

sudo yum install mod_wsgi

After that, proceed with reference to here. Write a new file with the extension . conf ** under ** /etc/httpd/conf.d ** ( / etc / httpd / conf / httpd.conf ** is a sub-treatment. ?), write a **. Wsgi ** script for operation in the specified location.

In the reference page, it seems that the Django project is placed under ** cgi-bin **, but it seems that it can be anywhere (of course, in that case, rewrite the directory part of the corresponding .conf).

Once they are done, reboot below.

sudo service httpd restart

The page is displayed when accessing the URL specified by the second argument of ** WSGIScriptAlias ** (probably InternalServerError if it is covered with others)

Recommended Posts

(Note) Django in Vagrant environment
Build a Django environment with Vagrant in 5 minutes
Django note 4
Django Note 5
Note: CGI (during trial and error) in Vagrant environment
Django Note 1
Django note 3
Django note 2
Use django-debug-toolbar in VirtualBox / Vagrant environment
Django environment construction
Install Django in a pipenv virtual environment
Models in Django
CSS environment created in 10 minutes using Django
(Note) Template file search order in Django
django environment construction
Forms in Django
Model changes in Django
virtualenvwrapper in windows environment
virtual environment in python
Development environment in Python
Django Girls Tutorial Note
[Memo] Django development environment
This and that around Mysql in Apache environment (Note)
Performance optimization in Django 3.xx
Try running python in a Django environment created with pipenv
PHP var_dump in Django templates
Handle constants in Django templates
Implement follow functionality in Django
Use Anaconda in pyenv environment
Minimal website environment with django
Django development environment construction memo
SSH restrictions in Linux environment
Django Getting Started: 1_Environment Building
Rename table columns in Django3
[Django3] Display a web page in Django3 + WSL + Python virtual environment
Django + MongoDB development environment maintenance (in the middle of writing)
Handle environment variables in Python
Output table structure in Django
Pip install in proxy environment
Python Input Note in AtCoder
Docker + Django + React environment construction
A note on how to load a virtual environment in PyCharm
HTTP environment variables in Flask
Django environment development on Windows 10
Byobu crashes in pyenv environment
django project development environment construction
Show Django ManyToManyField in Template
[Note] [For myself] Django command
How to build a LAMP environment using Vagrant and VirtulBox Note
Django cannot be installed in the development environment of pipenv + pyenv
I want to run Rails with rails s even in vagrant environment
Create an environment for Django x Apache x mod_wsgi with Vagrant (Ubuntu 16.04)
reload in django shell with ipython
Mac + Eclipse (PyDev) + Django environment construction
[Note] Django project creation and terminology
Run eclipse in Docker environment (noVNC)
Set placeholders in input fields in Django
8 Frequently Used Commands in Python Django
[Note] Project Euler in Python (Problem 1-22)
Python practice_Virtual environment setup ~ Django installation
Dynamically add form fields in Django