python - html css example in django -


i wanted use third-party html/css example in django, doesn't work.

<!doctype html> <html> <head>     <title>example</title>     <link rel="stylesheet" type="text/css" href="/static/css/style.css" /> </head>  <body>  example code  </body> </html> 

i have used example, , commented other code. django recognizes css file, checked it. however, don't sticky footer , header. transform in plain text, main body.

i put example in codeacademy engine , works there well.

what hidden stones of django might missing?

there no hidden stones in django. there no such option recognize css file django. django has nothing css files.

i recommend u open network panel in browser developer tools console , check, css file downloaded browser or not.

in case if u use django development server there manual how serve static files in development mode

https://docs.djangoproject.com/en/1.2/howto/static-files/

another cases are, misspelled css file name or misspelled/incorrect path css file

https://docs.djangoproject.com/en/dev/howto/static-files/


Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -