Bottle Python Web Framework - Static Files

preview_player
Показать описание
This video demonstrates how to handle static files inside of Bottle templates.

WORK WITH ME👇🏼

✅ Implement features and fix bugs in your app: Live, one-on-one screenshare
Рекомендации по теме
Комментарии
Автор

you promised people here the continue in this playlist, but for more than 3 years you didn't.
hope you continue. your explanation of things is clear and short

MohamedAshraf-zsnv
Автор

I'm glad i needed this video only a few days after you publish it. i had to watch if several times but finally i got it!

TomasDeMatteis
Автор

Thanks for share.

Do you have a video or published example explaining about session with Bottle? Or, How to make sessions with Bottle?

Kind regards.

felixurbina
Автор

Great videos!! Wished you would have kept making them

juanarizpe
Автор

You present some really cool stuff on the Bottle Framework. I think it would be cool if you could create a real world example like a one pager site or a basic business page. Just my two cents, bro 😅

thomasedwardking
Автор

Seus vídeos são ótimos! Obrigado por falar sobre bottle

FelipeSamuel
Автор

I'm really curious about Bottle. So more tutorial about it, please!

Mezklador
Автор

Thanks for the video. If I have a directory like this : /static/images/myimg.jpg and also /static/css/style.css how I can rout this files?

mohammadghonchesefidi
Автор

I think we should create another route for other folders like js, imgs, styles and so on .

mohammadghonchesefidi
Автор

Very need tutorial for make user register/login on Bottle ;) I know, you more liked Flask, but anyway.. please continue lessons for Bottle..

vic_shine
Автор

It might be like this:

def server_static(filename):
return static_file(filename, root='./static/css')

mohammadghonchesefidi
Автор

in myfiles i'd like to have and extra map called images but I cannot do that, any tips?

sundz
Автор

okay, then how can I do that in .tpl? like if I have a .css file in myfiles>styles>classic.css how do I write it in .tpl?
if i do <link rel="stylesheet" type="text/css"> wont work for me.

bernardrouhi
Автор

I faced really small error. but unfortunately I was not able to solve it. POST method call works through postman, but doesn't work from the browser!! I get this message:
AttributeError("'NoneType' object has no attribute 'get'", )

I will really appreciate it if someone can help. OR guide me to a complete example that shows the whole posting process between the html/browser and Python.

Canda-fhxc