I installed xampp on a windows machine locally. The httpd.conf file I
updated it by changing port 80 to 8000 (I don't know if this is right)
and at the bottom of the file I added these lines
GymGes/venv/Lib/site-packages/mod_wsgi/server/mod_wsgi.cp313-win_amd64.pyd”
WSGIScriptAlias / / /xampp/htdocs/PalestraGes/PalestraGes/wsgi.py
WSGIPythonHome /xampp/htdocs/PalestraGes/PalestraGes
WSGIPythonPath /xampp/htdocs/PalestraGes.
<Directory /xampp/htdocs/PalestraGes/PalestraGes>.
<Files wsgi.py>
Require all granted
</Files>
</Directory>
Then I created the httpd-vhosts.conf file which contains these lines
<VirtualHost *:8000>
ServerName 192.168.1.54
WSGIScriptAlias / /xampp/htdocs/PalestraGes/PalestraGes/wsgi.py
WSGIPythonHome /xampp/htdocs/PalestraGes/PalestraGes
WSGIPythonPath /xampp/htdocs/PalestraGes.
<Directory /xampp/htdocs/PalestraGes/PalestraGes>.
<Files wsgi.py>
Require all granted
</Files>
</Directory>
I run this command httpd -t and it comes back ok
I updated the settings.py file with this line
ALLOWED_HOSTS = [“localhost”, “127.0.0.1”, “192.168.x.x:8000”]
and whether I use
192.168.x.x:8000 or localhost it loads the xampp base page
192.168.1.54:8000/dashboardI don't know if I did something wrong or if there is some other thing to do