Django模板与静态文件

  • Django视图函数用于渲染模板。
  • Django根据默认或自定义顺序查找模板文件。
  • 在模板中可使用static标签引用静态文件。
zip
dj_site.zip 预估大小:53个文件
folder
dj_site 文件夹
folder
db.sqlite3 文件夹
folder
dj_site 文件夹
folder
__init__.py 文件夹
file
wsgi.py 407B
file
urls.py 872B
file
settings.py 3KB
folder
__pycache__ 文件夹
file
__init__.cpython-310.pyc 161B
file
wsgi.cpython-310.pyc 564B
file
settings.cpython-310.pyc 2KB
file
urls.cpython-310.pyc 1000B
file
asgi.py 407B
folder
app01 文件夹
folder
__init__.py 文件夹
file
tests.py 63B
file
admin.py 66B
folder
migrations 文件夹
folder
__init__.py 文件夹
folder
__pycache__ 文件夹
file
__init__.cpython-310.pyc 170B
file
apps.py 148B
file
models.py 60B
folder
templates 文件夹
file
user_list.html 427B
folder
__pycache__ 文件夹
file
views.cpython-310.pyc 479B
file
__init__.cpython-310.pyc 159B
file
apps.cpython-310.pyc 436B
file
admin.cpython-310.pyc 200B
file
models.cpython-310.pyc 197B
folder
static 文件夹
folder
plugins 文件夹
folder
bootstrap-3.4.1 文件夹
folder
js 文件夹
file
bootstrap.js 74KB
file
npm.js 484B
file
bootstrap.min.js 39KB
folder
css 文件夹
file
bootstrap-theme.min.css.map 74KB
file
bootstrap.min.css 119KB
file
bootstrap-theme.css.map 47KB
file
bootstrap-theme.css 25KB
file
bootstrap.css.map 382KB
file
bootstrap.css 143KB
file
bootstrap-theme.min.css 23KB
file
bootstrap.min.css.map 528KB
folder
fonts 文件夹
file
glyphicons-halflings-regular.svg 106KB
file
glyphicons-halflings-regular.ttf 44KB
file
glyphicons-halflings-regular.woff 23KB
file
glyphicons-halflings-regular.eot 20KB
file
glyphicons-halflings-regular.woff2 18KB
folder
js 文件夹
file
jquery-3.6.0.js 87KB
folder
img 文件夹
file
2.jpg 229KB
file
1.jpg 193KB
folder
css 文件夹
folder
fonts 文件夹
file
views.py 642B
folder
templates 文件夹
file
user_list.html 170B
folder
.idea 文件夹
file
workspace.xml 5KB
file
dj_site.iml 1KB
file
misc.xml 199B
folder
inspectionProfiles 文件夹
file
Project_Default.xml 16KB
file
profiles_settings.xml 174B
file
modules.xml 273B
file
.gitignore 190B
file
manage.py 685B
folder
__pycache__ 文件夹
file
manage.cpython-310.pyc 837B
...
zip 文件大小:836.44KB