Nick's picture

Hi there,

I have installed the django ISO onto a server.  It runs but servera files return a 403 error,

 

http://192.168.1.46/media/admin/admin/css/base.css

http://192.168.1.46/media/admin/admin/css/dashboard.css

 

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>403 Forbidden</title>
</head><body>
<h1>Forbidden</h1>
<p>You don't have permission to access /media/admin/admin/css/dashboard.css
on this server.</p>
<hr>
<address>Apache/2.2.22 (Debian) Server at 192.168.1.46 Port 80</address>
</body></html>

 

How would I resolve this?

Forum: 
Jeremy Davis's picture

Thanks for posting but this is a known issue. It will be fixed in the next TurnKey Release (v13.1).

There are actually a couple of bugs. The first (which you are referring to) is caused by an incorrect symlink. It can be fixed like this:

rm /var/www/project/media/admin
ln -s /usr/share/pyshared/django/contrib/admin/static /var/www/project/media/admin

The other relates to the built-in admin interface. Essentially you need to add 3 lines to the /var/www/project/settings.py file. The lines you need to add are highlighted in green here. Note that it isn't showing the whole file...

Add new comment