久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      Django配合Bootstrap怎么制作計算器(實戰(zhàn))

      本篇文章手把手帶大家使用Django+Bootstrap制作一個計算器,希望對大家有所幫助!

      Django配合Bootstrap怎么制作計算器(實戰(zhàn))

      準備工作

      創(chuàng)建一個應(yīng)用

      Django配合Bootstrap怎么制作計算器(實戰(zhàn))

      添加應(yīng)用到配置

      Django配合Bootstrap怎么制作計算器(實戰(zhàn))

      創(chuàng)建一個html

      Django配合Bootstrap怎么制作計算器(實戰(zhàn))

      編寫視圖函數(shù)

      from django.shortcuts import render   # Create your views here.  def home(request):     return render(request, 'index.html')

      Django配合Bootstrap怎么制作計算器(實戰(zhàn))

      配置路由

      from django.contrib import admin from django.urls import path,include  from app.views import home  urlpatterns = [     path('admin/', admin.site.urls),     path('',home,name='hoome'), ]

      Django配合Bootstrap怎么制作計算器(實戰(zhàn))

      導入Bootstrap前端框架

      下載地址

      https://github.com/twbs/bootstrap/releases/download/v3.4.1/bootstrap-3.4.1-dist.zip

      將css、fonts、js復(fù)制到static文件夾下 沒有則創(chuàng)建該文件夾?!?/p>

      贊(0)
      分享到: 更多 (0)
      網(wǎng)站地圖   滬ICP備18035694號-2    滬公網(wǎng)安備31011702889846號