Install Django on ASUS Tinker Board

by shubhamtrivedi95 in Circuits > Linux

1781 Views, 3 Favorites, 0 Comments

Install Django on ASUS Tinker Board

s-l1000.jpg

In this instructable i am going to use python3.5 and django 1.11.5

Requirements

Components required:

Downloads

Procedure

console.png

Make sure that tinker board is connected to the internet.

Download get_pip.py file

Open the console and type following code. If you are using tightvncviewer then find out the ip of tinker board , login to board and open console

"sudo apt-get install update && sudo apt-get install upgrade"

"sudo apt-get install python-dev python3-dev"

navigate to get_pip.py

in my case its in Desktop

"cd Desktop"

execute this file with following command

"sudo python3 get_pip.py"

this will install pip on tinker board

now you can use pip to install Django just type following command

"sudo pip3 install django"

goto to your home directory

"cd"

type the following command to create your first django website

"django-admin startproject mysite"

instead of mysite you can give anyname.

goto the that directory

"cd mysite"

apply the migrations

"python3 manage.py migrate"

run the website

"python3 manage.py runserver"

visit to http://127.0.0.1:8000/

if you are not getting any error then it working perfectly.

Thats it you have done

Done

working.png

Thanks

for any query mail me at shubhamtrivedi95@gmail.com

follow me on facebook