Op 15/07/2011 9:33, Szabo, Patrick (LNG-VIE) schreef:
I'm sorry maybe this is a dumb question but what do you mean when you say

" Inside static-folder I made a link
to ../../lib/python2.7/site-packages/django/contrib/admin/static/admin
for the admin-media files."

?!


. . . . . . . . . . . . . . . . . . . . . . . . . .
Patrick Szabo
  XSLT Developer
LexisNexis
Marxergasse 25, 1030 Wien

mailto:patrick.sz...@lexisnexis.at
Tel.: 00431 534521573
Fax: +43 (1) 534 52 - 146


-----Ursprüngliche Nachricht-----

Von: django-users@googlegroups.com [mailto:django-users@googlegroups.com] Im 
Auftrag von Bram Deprettere
Gesendet: Freitag, 15. Juli 2011 09:11
An: django-users@googlegroups.com
Betreff: admin_media_prefix in page source is wrong

I'm having the following situation;
django project named inventory
Made a folder static for media-files. Inside static-folder I made a link
to ../../lib/python2.7/site-packages/django/contrib/admin/static/admin
for the admin-media files.

When I go to http://inventory/admin, the static/admin files are not
loaded - so the page is shown without formatting.

When I check the page source, it shows
admin_media_prefix="http://inventory/admin/"; instead of
http://inventory/static/admin/ as set in settings.py.

I'm using django 1.4 in a virtual env, nginx as frontend. When I go to
http://inventory/static/admin it shows the css,... so that is configured
correctly.




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.

--
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