Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 1269

Python • Re: Django site with Apache WebServer not connecting to static files

$
0
0
Alias /static /home/pi/projects/monitorConditions/static
<Directory /home/pi/projects/monitorConditions/static>
Require all granted
</Directory>

<Directory /home/pi/projects/monitorConditions/monitorConditions>
<Files wsgi.py>
Require all granted
</Files>
</Directory>
These lines make me think that it may be a permission problem. All permissions should be granted, probably to www-data. use chown recursively for your entire project folder.

Security convention says the files should be owned by root with read-only permissions to www-data. Obviously files or folders that are expected to be written to by the server or other application would have other appropriate permissions.

Statistics: Posted by pidd — Mon Dec 25, 2023 11:26 am



Viewing all articles
Browse latest Browse all 1269

Trending Articles