[Django]-Django apache managing static files

3👍

Your STATIC_URL is wrong. Given your Apache configuration, it should be /static/ (and it should be a URL anyway, not a filesystem path).

And I don’t think the error in your Apache log has anything to do with your problem.

1👍

For the working directory warning, what mod_wsgi version are you on? Looks like you may be using an old version.

For your static file access problem change to using:

Alias /static/admin/ "/usr/local/lib/python2.7/dist-packages/django/contrib/admin/static/"

You need a trailing slash on target path if you are doing to have one on the URL path.

Leave a comment