Serve Files - Full Web Framework Python Django Tutorial XIII Blog - Linux/Ubuntu/Windows

preview_player
Показать описание

How to use serve filed in django when you develop
Рекомендации по теме
Комментарии
Автор

you welcome, spread the word, it helps :)

programmersbook
Автор

sorry, it was my fault, case sensitive :$ Thank you! your tutorial has been super useful for me! I'm noob with Django but you saved me! thanks a lot!

campanitabella
Автор

Just see ist now that "django.views.static.server" is wrong, it should be "django.views.static.serve". You can see at 2:58 that I corrected it.

programmersbook
Автор

Great videos!! You're helping me a lot!
A question: why, after doin' this, I can load my css file but the "Admin" application (the one that comes with django by default) can't load its css/template anymore?

Arsenico
Автор

when you forgot something :)

1. file handler in urls.py
2. set media root
3. typo?

programmersbook
Автор

I think I have done everything as you did but, my template can't see the css file and it serves the page as plain html without styles :(

campanitabella
Автор

the last part in the URLConf, I've done it as you did, but it has some error.
Error was: 'module' object has no attribute 'server'
when i try django.views.static.serve, it is ok.
but your tutorial is django.views.static.server...
please tell me why?
my python version is 2.7.2, django version is 1.2.7
thx!

scarletskyguan
visit shbcf.ru