KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I've looked through a lot of the related posts but nothing seems to be helping. Relevant Info: Django version - 1.4 Apache version - 2.2 Python version - 2.7 OS - Xubuntu 12.04 DB - Mysql I'm trying to get Apache to serve both the django app and static files. The issue become apparent in the admin site which fails to display any of the CSS styles or images. My admin site currently looks like: (well, I would have included an image but stack overflow didn't let me. Suffice to say it looks like the admin page of everyone else who's posted on this topic, see Apache not serving django admin static files ) Application pieces like my login page and some dynamic content work just fine, but when I try to serve static content, I get a 403 error. Additionally when I try to navigate to the stylesheet manually by looking at the admin page's rendered html and clicking on the link to the stylesheet at http://localhost/static/admin/css/base.css I get a 403 error. I can navigate there in a terminal, and changed the permissions for the folder so that Apache's www-data user explicitly has access to all the files. Here are the relevant pieces of my httpd.conf: #AliasMatch ^/([^/]*\.css) /usr/local/wsgi/static/styles/$1 Alias /media/ "/usr/local/wsgi/media/" Alias /static/ "/usr/local/wsgi/static/" <Directory "/usr/local/wsgi/static"> Order deny,allow Allow from all </Directory> <Directory "/usr/local/wsgi/media"> Order deny,allow Allow from all </Directory> WSGIScriptAlias / "/home/noah/Documents/Web/Basic/apache/django.wsgi" <Directory "/usr/local/wsgi/scripts"> Order allow,deny Allow from all </Directory> On the advice of a friend I also copied
Tags (comma-separated)
Save Edits
Cancel