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
Comments
Post a Comment