I would greatly appreciate some help with setting up my first Django frame work on a Apache web server on a Raspberry Pi.
Raspian OS 11 Bullseye
Raspberry Pi 4 - 4GB
I am following this guide: Apache, Django, Raspberry Pi guide
Unfortunately when I come to the end when I try to bring up the django page with a web browser using the Pi’s IP address I get Forbidden access message saying I don’t have permission to access the site. I have made sure to add the IP addresses of the PI and any other device on my network, but still no luck. I can access the default Apache page up until the step I have to modify the Apache 000-default.conf file. If I remove the text from the file, I can then get access the Apache page again, but not Django. I have completely re-installed Raspbian twice to make sure, and on the final attempt I kept all the directories and users as the guide says to reduce as many variables as possible, but still no luck. I think the problem is somewhere in the modified code for the Apache default file. If anyone has any advice I would greatly appreciate it.
Alias /static /home/pi/pidjango/static
Require all granted
<Directory /home/pi/pidjango/pidjango> <Files wsgi.py> Require all granted </Files> </Directory> WSGIDaemonProcess django python-path=/home/pi/pidjango python-home=/home/pi/pidjango/djenv WSGIProcessGroup django WSGIScriptAlias / /home/pi/pidjango/pidjango/wsgi.py