<snip>

Von: django-users@googlegroups.com
[mailto:django-users@googlegroups.com] Im Auftrag von Bram Deprettere
Gesendet: Montag, 18. Juli 2011 09:36
An: django-users@googlegroups.com
Betreff: Re: AW: admin_media_prefix in page source is wrong

I mean I used ln -ls to make a link to
../../lib/python2.7/site-packages/django/contrib/admin/static/admin
inside my static-folder.





I use a symbolic link to the static admin files of django instead of
copying the files to the static folder of my project.
That link works - when I go to http://inventory/static/admin is can see
the css/img/js folders for admin.


I just tried to set admin_media_url but it doesn't work either.




Found the solution to my problem:

admin_media_prefix is depricated in django 1.4, it is no longer necessary to set this in settings.py.

I solved my problem by setting a "/" at the end of my static_url in settings.py. So I changed
STATIC_URL = 'http://%s/static'
into
STATIC_URL = 'http://%s/static/'

--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to