You are not logged in.

Change Language:

Freelancer? Consultant? Check out: WorkTrail - Time Tracking made easy
Board » Django » Templates » css doesn't work

hi
i have some pages in my site
and i wrote a CSS file for them
but when i import it in my pages using link tag, nothing happns
the problem occurs when i'm trying to access pages over the django server
if i open them manualy, not in the server, they are ok and styles are applied
but django server doesn't recognize it
i should mention that the server doesn't have any problem with inline styles, i tested it
i think there is something wrong in linking
it doesn't show pictures, too

here's my code for link tag in html files:
<link rel="stylesheet" type="text/css" href="../static/css/ProjectStyle.css" />

and this is my code for linking to the images:
<img alt="logo" src="../static/images/ARSHLOGO.png" height="75px" width="75px" />

the tree view of my project is:

>mysite

--->static
------>css
------>images

--->templates

my html files are in the templates folder
I'm having the same problem. Made any progress?





Powered by Sphene Community Tools