Hello,
I cloned admin media and templates of django:
cp -a python-django/django/contrib/admin/media /opt/cedecka/app/
cp -a python-django/django/contrib/admin/templates \ /opt/cedecka/app/admin/
I customized a little templates (mainly title, ...).
The applications is started:
./manage.py runserver antares.site.xx:8000 \
--adminmedia=/opt/cedecka/app/media
(I setup template directory at /opt/cedecka/app/template).
The application runs at server inside internal network.
My goal is to have access to this application from internet.
I tried to set up proxy at www server:
<VirtualHost cedecka.pracovni.net>
...
RewriteEngine on
RewriteRule ^/(.*) http://antares.brailcom.xx:8000/$1 [P,L]
...
</VirtualHost>
It works, but firefox does not want to load styles that are imported in
main style.
E.g. login.html loads login.css.
@import url('base.css');
@import url('layout.css');
/* LOGIN FORM */
body.login { background:#eee; }
.login #container { background:white; border:1px solid #ccc;
...
Firefox loads it but it neither tries to load base.css, layout.css.
I check by tcpdump plus tcptrace whether there is an attempt to load
them. No attempt. It ignores these import lines.
If I give firefox an url to load:
http://cedecka.pracovni.net/media/base.css, it loads it without problem.
If I made tunnel (ssh -L 8000:antares:8000 antares),
firefox loads all styles including imported ones.
IF I use IE, it loads all stylesheets and admin looks nice.
Firefox does not and admin is just textual (without any layout).
Please give me a hint to set up proxy/tunnel, for django application.
Thanks,
Jan Stavel
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---