djangoで別ファイルのjavascriptが読み込めません。解決方法をご教示いただきたいです。
ディレクトリ構造
myapp - views.py - template - siteA - index.html - static - siteA - sample.js - style.css
index.html※一部抜粋
<link rel="stylesheet" type="text/css" href="{% static 'siteA/style.css' %}" /> <script type="text/javascript" src='{% static 'siteA/sample.js' %}'></script>
cssは効いているのですが、jsが効いていない状態です。
よろしくお願いたします。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。