Hi I am following the "Getting Started on Django" webcast and am confused about how to set the absolute path to symlink when creating the "admin_media" application.
Do I use:
I assume that I need to create the "media" directory inside of the admin folder, as well. Is this correct?
asked Apr 20 '12 at 16:36
I just finished dealing with this problem. It's not so bad in retrospect.
View the source on your admin login page. It probably says it is looking for the css files in /static/admin/
The problem is that there isn't anything there necessarily. All the data you want is actually stored in /home/<username>/webapps/<appname>/lib/python2.7.../admin/static/admin/
(in contrast to 1.3 /home/<username>/webapps/<appname>/lib/python2.7.../admin/media/ )
Using a symbloic link you can get send the browser to
Explicitly: make a symbolic link app. put /home/<username>/webapps/<appname>/lib/python2.7.../admin/static in the extra info. Add the app to your website with the url /static/admin. restart apache.
answered May 06 '12 at 16:35