{"id":1413,"date":"2019-06-11T08:26:13","date_gmt":"2019-06-11T03:26:13","guid":{"rendered":"https:\/\/webplover.com\/hosting\/?p=1413"},"modified":"2022-02-12T14:24:46","modified_gmt":"2022-02-12T09:24:46","slug":"install-django-on-android","status":"publish","type":"post","link":"https:\/\/webplover.com\/hosting\/install-django-on-android\/","title":{"rendered":"How To Install Django On Android [With Pictures]"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\" id=\"install-django-on-android\">Install Django On Android<\/h2>\n\n\n\n<p>Nowadays,<b> Python <\/b>is the most popular Programming Language in the world; the one reason for its popularity is that it is incredibly easy to learn and use.<br>Python is interpreted as a high-level programming language for general-purpose programming. You can use it for both Desktop and Web Applications Development.<\/p>\n\n\n\n<p>There are a few frameworks that provide us the ability&nbsp;to develop web applications in Python, like <b>Django, Flask, Tornado, Falcon, Hug, Sanic, aiohttp, Pyramid, <\/b>etc.<\/p>\n\n\n\n<p>The most popular Python Web Framework is <b>Django<\/b>.<\/p>\n\n\n\n<p>In this article, you will get the ultimate guide on how to install <b>Django<\/b> on Android.<\/p>\n\n\n\n<p><b>Let&#8217;s Get Started&#8230;<\/b><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"video-tutorial\">Video Tutorial<\/h2>\n\n\n\n<p>&nbsp;<br><iframe loading=\"lazy\" src=\"https:\/\/www.youtube.com\/embed\/5nxYPizo7JU\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"step-1\">Step 1:<\/h3>\n\n\n\n<p>First of all, you will need a terminal; in my opinion, <a href=\"https:\/\/termux.com\"><b>Termux<\/b><\/a><b> <\/b>is the best terminal for Android.<\/p>\n\n\n\n<p>Download it from the below link<\/p>\n\n\n\n<p><a href=\"https:\/\/termux.com\">Download Termux<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"step-2\">Step 2:<\/h3>\n\n\n\n<p>Download <a href=\"https:\/\/play.google.com\/store\/apps\/details?id=org.pocketworkstation.pckeyboard\">Hacker&#8217;s Keyboard<\/a><\/p>\n\n\n\n<p>This keyboard allows you the <b>Ctrl, Alt, Esc, Arrow<\/b> keys.<\/p>\n\n\n\n<p>Download it from the below link<\/p>\n\n\n\n<p><a href=\"https:\/\/play.google.com\/store\/apps\/details?id=org.pocketworkstation.pckeyboard\">Hacker&#8217;s Keyboard<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"step-3\">Step 3:<\/h3>\n\n\n\n<p>Open Termux.<\/p>\n\n\n\n<p>And install Python by entering the following command<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pkg install python<\/code><\/pre>\n\n\n\n<p>Python setup size is about <b>5.4 MB<\/b><\/p>\n\n\n\n<p>Python has been downloaded successfully.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/webplover.com\/hosting\/wp-content\/uploads\/2018\/07\/yar71972552203.png\" alt=\"Install Django On Android\" class=\"wp-image-1590\"\/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"step-4\">Step 4:<\/h3>\n\n\n\n<p>Create a new directory for <b>Django<\/b><\/p>\n\n\n\n<p>Use the following command to check your current directory<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pwd<\/code><\/pre>\n\n\n\n<p>To create a new directory, use the following command<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mkdir directory_name<\/code><\/pre>\n\n\n\n<p>I am creating a <i>&#8216;Django&#8217;<\/i> directory<\/p>\n\n\n\n<p>After creating a new directory, enter it by<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cd directory_name<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/webplover.com\/hosting\/wp-content\/uploads\/2018\/07\/yar51093468199.png\" alt=\"Install Django On Android\" class=\"wp-image-1592\"\/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"step-5\">Step 5:<\/h3>\n\n\n\n<p>Install <b>Virtual Environment<\/b> to create environment for your project. For this, use this command<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pip install virtualenv<\/code><\/pre>\n\n\n\n<p>After installing the <b>virtual environment<\/b>, create a virtual environment by using this command<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>virtualenv env<\/code><\/pre>\n\n\n\n<p>Then activate the virtual environment with the following command<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>. env\/bin\/activate<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/webplover.com\/hosting\/wp-content\/uploads\/2018\/07\/yar3503921053.png\" alt=\"Install Django On Android\" class=\"wp-image-1594\"\/><\/figure>\n\n\n\n<p>After environment activation, install <b>Django <\/b>in the same directory where you have installed virtual environment, by typing<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pip install django<\/code><\/pre>\n\n\n\n<p>You can check your Django version by using the following command<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>django-admin --version<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/webplover.com\/hosting\/wp-content\/uploads\/2018\/07\/yar1485646868.png\" alt=\"Install Django On Android\" class=\"wp-image-1596\"\/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"step-6\">Step 6:<\/h3>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"create-a-django-project\">Create a Django Project<\/h2>\n\n\n\n<p>To create a new project, use the following command<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>django-admin startproject testsite .<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/webplover.com\/hosting\/wp-content\/uploads\/2018\/07\/nds7309490107.png\" alt=\"Install Django On Android\" class=\"wp-image-1598\"\/><\/figure>\n\n\n\n<p>Here I am creating a &#8220;testsite&#8221; project.<\/p>\n\n\n\n<p>After creating a project, you can see your project by this command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ls<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/webplover.com\/hosting\/wp-content\/uploads\/2018\/07\/nds62146069330.png\" alt=\"Install Django On Android\" class=\"wp-image-1599\"\/><\/figure>\n\n\n\n<p>Now use this command for migration<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\npython manage.py migrate<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"step-7\">Step 7:<\/h3>\n\n\n\n<p>This is the last step<\/p>\n\n\n\n<p>Here we will run the server.<\/p>\n\n\n\n<p>Use the following code to run the server<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>python manage.py runserver<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/webplover.com\/hosting\/wp-content\/uploads\/2018\/07\/nds5708327524.png\" alt=\"Install Django On Android\" class=\"wp-image-1600\"\/><\/figure>\n\n\n\n<p>The server has started successfully.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/webplover.com\/hosting\/wp-content\/uploads\/2018\/07\/nds446441765.png\" alt=\"Install Django On Android\" class=\"wp-image-1601\"\/><\/figure>\n\n\n\n<p>Now, open your browser and enter the default Django server address.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>http:&#47;&#47;127.0.0.1:8000\/<\/code><\/pre>\n\n\n\n<p>And hit the enter key<\/p>\n\n\n\n<p>You will see the Django welcome page<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/webplover.com\/hosting\/wp-content\/uploads\/2018\/07\/nds21691496783.jpg\" alt=\"Install Django On Android\" class=\"wp-image-1603\"\/><\/figure>\n\n\n\n<p>It means <b>Django <\/b>has been successfully installed.<\/p>\n\n\n\n<p>You can close the server by pressing <b>Ctrl+C<\/b><\/p>\n\n\n\n<figure class=\"wp-block-image is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/webplover.com\/hosting\/wp-content\/uploads\/2018\/07\/nds11740193819.png\" alt=\"Install Django On Android\" width=\"544\" height=\"326\"\/><\/figure>\n\n\n\n<p><b>Now, if you have any questions, don\u2019t hesitate to let me know through comment or email, I will try to help you.<\/b><\/p>\n\n\n\n<div class=\"g-ytsubscribe\" data-count=\"hidden\" data-layout=\"full\" data-channelid=\"UCArLhGLL14dgeiIKwlu4jYA\">&nbsp;<\/div>\n\n\n\n<p><strong>If you found this article helpful, then please Subscribe to our <a href=\"https:\/\/m.youtube.com\/channel\/UCArLhGLL14dgeiIKwlu4jYA\" target=\"_blank\" rel=\"noopener noreferrer\">YouTube Channel<\/a> for video tutorials, and share this article on social media.<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Install Django On Android Nowadays, Python is the most popular Programming Language in the world; the one reason for its popularity is that it is incredibly easy to learn and use.Python is interpreted as a high-level programming language for general-purpose programming. You can use it for both Desktop and Web Applications Development. There are a&#8230;<\/p>\n","protected":false},"author":220,"featured_media":1740,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"_kadence_starter_templates_imported_post":false,"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","footnotes":""},"categories":[222],"tags":[],"class_list":["post-1413","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-django"],"acf":[],"_links":{"self":[{"href":"https:\/\/webplover.com\/hosting\/wp-json\/wp\/v2\/posts\/1413","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webplover.com\/hosting\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webplover.com\/hosting\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webplover.com\/hosting\/wp-json\/wp\/v2\/users\/220"}],"replies":[{"embeddable":true,"href":"https:\/\/webplover.com\/hosting\/wp-json\/wp\/v2\/comments?post=1413"}],"version-history":[{"count":0,"href":"https:\/\/webplover.com\/hosting\/wp-json\/wp\/v2\/posts\/1413\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webplover.com\/hosting\/wp-json\/wp\/v2\/media\/1740"}],"wp:attachment":[{"href":"https:\/\/webplover.com\/hosting\/wp-json\/wp\/v2\/media?parent=1413"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webplover.com\/hosting\/wp-json\/wp\/v2\/categories?post=1413"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webplover.com\/hosting\/wp-json\/wp\/v2\/tags?post=1413"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}