Install Django on ASUS Tinker Board
by shubhamtrivedi95 in Circuits > Linux
1781 Views, 3 Favorites, 0 Comments
Install Django on ASUS Tinker Board
In this instructable i am going to use python3.5 and django 1.11.5
Requirements
Components required:
- Tinker board with tinker os 2.0.1 and vnc
- TightVNC-viewer software or connect desktop , mouse , and keyboard to tinker board
- active internet connection
- get_pip file
Downloads
Procedure
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