# Django, Apache, Raspberry Pi, Forbidden Access

**URL:** <https://forum.djangoproject.com/t/django-apache-raspberry-pi-forbidden-access/24882>\
**Category:** Getting Started\
**Created:** [October 29, 2023, 6:59pm UTC](https://forum.djangoproject.com/t/django-apache-raspberry-pi-forbidden-access/24882 "2023-10-29T18:59:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anteas99](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/anteas99/32/16703_2.png) [@Anteas99](https://forum.djangoproject.com/u/Anteas99)\
**Post date:** [October 29, 2023, 6:59pm UTC](https://forum.djangoproject.com/t/django-apache-raspberry-pi-forbidden-access/24882/1 "2023-10-29T18:59:26Z")

</div>

Hi all,

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  
Apache 2.4.56  
Django 4.2.6  
Raspberry Pi 4 - 4GB

I am following this guide: [Apache, Django, Raspberry Pi guide](https://pimylifeup.com/raspberry-pi-django/)

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  
\<Directory /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

```

---

<div class="post-metadata">

**Author:** ![StevieT88](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/steviet88/32/28193_2.png) [@StevieT88](https://forum.djangoproject.com/u/StevieT88)\
**Post date:** [April 21, 2025, 10:43am UTC](https://forum.djangoproject.com/t/django-apache-raspberry-pi-forbidden-access/24882/2 "2025-04-21T10:43:42Z")

</div>

I know it has been several months. I am in the exact same place, referencing the exact same tutorial. Did you ever resolve this?
