The following settings have been made in settings.py:
MEDIA_ROOT = '/home/username/webapps/appmedia'
My Django app now works fine: user media and static content for the site are displayed correctly. The only issue is that the admin media (CSS) is not displayed.
It is looking in the following location: "http://domainname.com/static/admin/css/base.css"
As I said, the rest is just fine, the only issue is with the admin media. How to fix this?
edit additional, the tutorials says the following:
But it never explains how to create the admin media symbolic link. An I missing something here?
I have resolved the issue for now by adding a symlink in the folder of the static app. This points a link with the name "static" to the target $HOME/webapps/myapp/lib/python2.7/django/contrib/admin/static/admin
This should not be the correct solution, but it works for now. Any suggestions still welcome.
answered Sep 26 '12 at 08:02
In Django 1.4 all static files of apps including admin interface files are now stored in STATIC_ROOT. To collect all static files from apps and from the Django installation into that folder, run:
This will better resolve your problem than using symlinks or functions.
answered Dec 06 '12 at 08:04