Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Dir structure (simplified):
- app1/static/js/file.js
- app1/static/css/file.css
- app2/static/js/otherfile.js
- app2/static/css/otherfile.css
- templates/template.html
- Template.html:
- <script src="{{ STATIC_URL }}js/file.js"></script>
- Project Root
- Settings file
- Manage.py file
- STATICFILES_DIRS = (
- # ...
- ("resources", "C:/data/django/myproject/myapp/static"), )
- <link rel="stylesheet" href="{%static 'resources/favicon.png' %}" type="text/css">
- {% static "js/lib/jquery-1.8.2.min.js" %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement