亚洲中字慕日产2020,大陆极品少妇内射AAAAAA,无码av大香线蕉伊人久久,久久精品国产亚洲av麻豆网站

資訊專欄INFORMATION COLUMN

#date:2017.07.19 django app, Part 2

MartinHan / 2827人閱讀

摘要:這篇教程從教程,我們會(huì)配置自己的數(shù)據(jù)庫,創(chuàng)造你的第一個(gè)模型,開始一個(gè)快捷的自動(dòng)生成管理員站點(diǎn)。項(xiàng)目是一個(gè)特性網(wǎng)站的相關(guān)配置和應(yīng)用的集合。

Writing your first django app, part 2

this tutorial begins where Tutorial 1 left off.We"ll setup the database, create your first model, and get a quick introduction to Django"s automatically-generated admin site.
這篇教程從教程1,我們會(huì)配置自己的數(shù)據(jù)庫,創(chuàng)造你的第一個(gè)模型,開始一個(gè)快捷的django自動(dòng)生成管理員站點(diǎn)。

database setup

if you wish yo use another databse install the approprite database bindings ans change the following keys in DATABASE "default itemto match your database connection setting:

ENGINE : django.db.backends.mysql

NAME : The name of your database.

The migrate command looks at the INSTALLED_APPS setting and creates any nessary database tables according to the database setings in your mysite/settings.py fiel and database migrations shipped with the app. You"ll see a message for each migration it applies. If you"re interested, run the commadn-line client for your database ans type

migrate查看INSTALLED_APPS設(shè)置并根據(jù)這個(gè)mysite/setting.py文件中的數(shù)據(jù)庫設(shè)置創(chuàng)建任何必要的數(shù)據(jù)庫表,數(shù)據(jù)庫的遷移還會(huì)跟蹤應(yīng)用的變化

minimalists : 極簡(jiǎn)主義者

a model is a single, definitive source of truth about your data.It contains the essential fields ans behaviors of the data you"re storing.

項(xiàng)目和應(yīng)用之間有什么不同呢,應(yīng)用是一個(gè)web應(yīng)用程序,他完成具體的事項(xiàng),比如一個(gè)博客系統(tǒng)一個(gè)存儲(chǔ)工作檔案的數(shù)據(jù)庫或者一個(gè)簡(jiǎn)單的頭片應(yīng)用。項(xiàng)目是一個(gè)特性網(wǎng)站的相關(guān)配置和應(yīng)用的集合。一個(gè)項(xiàng)目可以包含多個(gè)應(yīng)用。一個(gè)應(yīng)用可以應(yīng)用到多個(gè)項(xiàng)目中去。

文章版權(quán)歸作者所有,未經(jīng)允許請(qǐng)勿轉(zhuǎn)載,若此文章存在違規(guī)行為,您可以聯(lián)系管理員刪除。

轉(zhuǎn)載請(qǐng)注明本文地址:http://www.ezyhdfw.cn/yun/40641.html

相關(guān)文章

  • 2017-07-19 前端日?qǐng)?bào)

    摘要:前端日?qǐng)?bào)精選開發(fā)常見問題集錦前端碼農(nóng)的自我修養(yǎng)虛擬內(nèi)部是如何工作的譯知乎專欄并不慢,只是你使用姿勢(shì)不對(duì)一份優(yōu)化指南掘金老司機(jī)帶你秒懂內(nèi)存管理第一部中文免費(fèi)公開課前端面試的大關(guān)鍵點(diǎn),你到了嗎知乎專欄高效開發(fā)與設(shè)計(jì)姐的圖片二三 2017-07-19 前端日?qǐng)?bào) 精選 VueJS 開發(fā)常見問題集錦 - 前端碼農(nóng)的自我修養(yǎng) - SegmentFault虛擬 DOM 內(nèi)部是如何工作的?[譯]Hig...

    iflove 評(píng)論0 收藏0
  • 7-django——文件上傳_分頁_ajax_富文本_celery

    摘要:上傳文件概述當(dāng)在處理文件上傳時(shí),文件的數(shù)據(jù)被存儲(chǔ)在屬性中只有在請(qǐng)求的方法為且提交的表單帶有屬性的情況才會(huì)包含數(shù)據(jù)。如豆瓣,防止頁面卡死。 上傳文件 概述 當(dāng)Django在處理文件上傳時(shí),文件的數(shù)據(jù)被存儲(chǔ)在request.FILES屬性中 FILES只有在請(qǐng)求的方法為POST且提交的form表單帶有enctype=multipart/form-data屬性的情況才會(huì)包含數(shù)據(jù)。否則,F(xiàn)IL...

    lylwyy2016 評(píng)論0 收藏0
  • Awesome Python

    摘要:漢字拼音 Awesome Python A curated list of awesome Python frameworks, libraries and software. Inspired by awesome-php. Awesome Python Environment Management Package Management Package Repositorie...

    fizz 評(píng)論0 收藏0

發(fā)表評(píng)論

0條評(píng)論

MartinHan

|高級(jí)講師

TA的文章

閱讀更多
最新活動(dòng)
閱讀需要支付1元查看
<