Cov txheej txheem:

Nruab Django ntawm ASUS Tinker Board: 3 Kauj Ruam
Nruab Django ntawm ASUS Tinker Board: 3 Kauj Ruam

Video: Nruab Django ntawm ASUS Tinker Board: 3 Kauj Ruam

Video: Nruab Django ntawm ASUS Tinker Board: 3 Kauj Ruam
Video: Neej kub nyhiab vim niam tais tswj #2. 4/6/2018 2024, Kaum ib hlis
Anonim
Nruab Django ntawm ASUS Tinker Board
Nruab Django ntawm ASUS Tinker Board

Hauv cov lus qhia no kuv yuav siv sej 3.5 thiab django 1.11.5

Kauj ruam 1: Yuav tsum tau ua

Cheebtsam yuav tsum tau:

  • Tinker board nrog tinker os 2.0.1 thiab vnc
  • TightVNC-saib software lossis txuas duab, nas, thiab keyboard rau tinker board
  • nquag siv internet txuas
  • get_pip cov ntaub ntawv

Kauj ruam 2: Txheej txheem

Txheej txheem
Txheej txheem

Nco ntsoov tias tinker board tau txuas nrog internet.

Rub cov ntawv get_pip.py

Qhib lub console thiab ntaus cov cai hauv qab no. Yog tias koj siv tightvncviewer ces nrhiav tus ip ntawm tinker board, nkag mus rau board thiab qhib console

"sudo apt-tau nruab hloov tshiab & sudo apt-tau nruab txhim kho"

sudo apt-tau nruab python-dev python3-dev

mus rau get_pip.py

hauv kuv cov ntaub ntawv nws nyob hauv Desktop

"Lub desktop"

ua cov ntaub ntawv no nrog cov lus txib hauv qab no

"sudo python3 get_pip.py"

qhov no yuav teeb tsa pip ntawm tinker board

tam sim no koj tuaj yeem siv pip los nruab Django tsuas yog ntaus cov lus hauv qab no

sudo pip3 nruab django

nkag mus rau koj phau ntawv qhia tsev

cd

ntaus cov lus txib hauv qab no los tsim koj thawj django lub vev xaib

"django-admin pib qhov project mysite"

hloov ntawm mysite koj tuaj yeem muab lub npe twg.

nkag mus rau phau ntawv ntawd

cd kuv

siv cov kev tsiv teb tsaws chaw

"python3 manage.py migrate"

khiav lub vev xaib

"python3 tswj.py runerver"

mus ntsib

yog tias koj tsis tau txais ib qho yuam kev ces nws ua haujlwm zoo kawg nkaus.

Qhov ntawd yog koj tau ua

Kauj ruam 3: Ua tiav

Ua tiav
Ua tiav

Ua tsaug

rau txhua qhov lus nug xa kuv ntawm [email protected]

ua raws kuv ntawm facebook

Pom zoo: