Flask Tutorial - 9. Adding A Bootstrap Theme to Flask

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

📣 Other Social:
Рекомендации по теме
Комментарии
Автор

Thank you. Finally after watching many videos, i've found the right thing.

leelakrishna
Автор

rather than replacing each line with /static/, you can use static_url_path to the root project directory.

from flask import Flask, request
# set the project root directory as the static folder, you can set others.
app = Flask(__name__, static_url_path='')

@app.route('/')
def root():
return

rahul_bali
Автор

is faster if you search the string ' src=" ' (including the first quote ) and then replace it with ' src="/static/ '

lllForneronlll
Автор

No sé ingles y te entendí todo! Muchas gracias ♥

ediannysgonzalez
Автор

is it smart to use a bootstrap theme that requires node.js with it if iam building up an app in flask ?

llIIllIlIIllX_XIillIIllIIllIll
Автор

Thanks for the video. Insight as to how the freelancer theme's contact form could be linked to flask app for purposes of retrieving contact form data would be helpful.

khambreldavis
Автор

Although you've included bootstrap js and css in static, do you still need to install flask_bootstrap anyway?

Rootkit
Автор

Maybe you can use {{ url_for('/static', filename='xxx.css') }} to let flask find static files dynamically.

kushnee
Автор

Hi Chris, I have a problem registering the user, it says that "None type has no method send" :(

bowenchen
Автор

wow, i always thought when linking to css files in flask that you needed to use the url_for function
e.g. :
href="{{url_for('static', filename='main.css')}}"

itpugil