問題タブ [s]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
python - URL_STATIC によるフラスコ静的ファイルのリンク
SO私はflaskプロジェクトを作成していましたが、index.htmlで作業している間、static_urlがここにコードであっても、静的フォルダーからcss、javascriptなどのファイルにアクセスできませんでした
url_for('static', filename='path/to/file') を使用した後、css ファイルにアクセスできませんでした
python - htmlはdjangoの辞書とボタンのダウンロードを繰り返します
私はDjangoのアプリに取り組んでいます
取得するために defaultlist を使用しました: Key: -value -value -value Key2: -value -value value
しかし、出力に何もなく、ホームページを pdf にダウンロードしたいのですが、次のエラーが表示されます。
"/views.download_my_pdf の AttributeError 'str' オブジェクトに属性 'read' がありません"
どこで間違ったのですか?ご協力ありがとうございました
Django の views.py
.html
django での私のアプリの urls.py