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.
- [Django]-What's the difference between settings.AUTH_USER_MODEL and django.contrib.auth.get_user_model?
- [Django]-Components in Django
- [Django]-Working with Django Model Permission raises DoesNotExist error
- [Django]-How to make Django use two different databases based on debug flag
Source:stackexchange.com