第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問(wèn)題,去搜搜看,總會(huì)有你想問(wèn)的

如何在flask sqlalchemy中接收來(lái)自數(shù)據(jù)庫(kù)的鏈接

如何在flask sqlalchemy中接收來(lái)自數(shù)據(jù)庫(kù)的鏈接

拉風(fēng)的咖菲貓 2023-10-11 22:48:10
我想通過(guò) Flask 應(yīng)用程序在我的 html 文檔中接收 Youtube 嵌入視頻,所以我在數(shù)據(jù)庫(kù)中有嵌入視頻的鏈接,并且我能夠獲取鏈接,但它只是文本格式請(qǐng)幫助我選擇正確的數(shù)據(jù)類(lèi)型數(shù)據(jù)庫(kù)Python代碼:    class Youtube(db.Model):        sno = db.Column(db.Integer, primary_key=True)        embeded_video = db.Column(db.String(100), nullable=False)@app.route("/videos/fixing")def fixingpage():    posts = Youtube.query.filter_by().all()    return render_template('post.html', posts=posts)Html 代碼 (post.html) : -    <div>{{ posts.embeded_video }}    </div>輸出 :-It is printing as it is embeding link<iframe src="https://www.youtube.com/embed/OWN03n12VAc" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>  Insted of it I want video to be Inserted
查看完整描述

1 回答

?
慕容森

TA貢獻(xiàn)1853條經(jīng)驗(yàn) 獲得超18個(gè)贊

你必須使用安全


Html 代碼 (post.html) :-


   <div>

    {{ posts.embeded_video | safe }}

    </div>


查看完整回答
反對(duì) 回復(fù) 2023-10-11
  • 1 回答
  • 0 關(guān)注
  • 120 瀏覽
慕課專欄
更多

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)