Hi,everyone,this is a beginner's first post,after a long,tired search
here and there without any solution.
I use apache+mod_python on windows,The problem is the css and images
does't be imported anyway,as I did what "How to use Django with Apache
and mod_python" told in http://docs.djangoproject.com/.

I set the static dictionary,including css,images,js files I want to
root,in the httpd.conf:
Alias /static D:/home/django/myproject/static
<Location "/static">
    SetHandler None
</Location>
and,in html:
<link rel="stylesheet" href="static/style/index.css">
<img src="static/images/logo.png">

Is there any relationship with Media_root,Media_URL in the settings
file,which I set like these:
MEDIA_ROOT ='D:/home/django/myproject/static/
MEDIA_URL ='http:/localhost/static/'

I have tried to put the static dictionary in the htdocs of apache,the
css and images can be invoked when I open http://localhost/,but once
go to another link,such as http://localhost/register,the css and
images are missing again!

Is there any good solution to treat these static files,by which we can
use relative path to include css and images files like /style/
index.css in html templates.

Thank you very much!

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

Reply via email to