

{"id":51981,"date":"2019-03-13T13:05:57","date_gmt":"2019-03-13T07:35:57","guid":{"rendered":"https:\/\/data-flair.training\/blogs\/?p=51981"},"modified":"2021-06-21T12:19:42","modified_gmt":"2021-06-21T06:49:42","slug":"create-install-deploy-django-app","status":"publish","type":"post","link":"https:\/\/data-flair.training\/blogs\/create-install-deploy-django-app\/","title":{"rendered":"How to Create, Install &amp; Deploy Your First Django App"},"content":{"rendered":"<p>In this <strong>Django tutorial<\/strong>, we will be creating, installing and deploying our first Django app. We will also learn to add the app in urls.py file and create the views.py file for the Django project. This tutorial will also let you grasp the concept of web application more easily.<\/p>\n<p>Firstly, let&#8217;s discuss the process of creating a Django app.<\/p>\n<h3>How to Create a Django App<\/h3>\n<h2><\/h2>\n<p>The main reason we are using web applications in the first place is to implement Django\u2019s code reusability feature.<br \/>\nThis enables us to not only migrate the pre-built apps in our project but also customize web applications made by us.<\/p>\n<p>All the commands are given in our root directory or in the directory where we have the\u00a0manage.py file.<\/p>\n<p>Also, before creating our Django application just execute this command on your system inside the project\/root directory.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">python manage.py makemigrations<\/pre>\n<p>After completion of this command execute this command:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">python manage.py migrate<\/pre>\n<p><strong>Creating a Django project<\/strong> is very simple you will just need to write some commands that will be executed on your system.<\/p>\n<p>Here, both the PowerShell and terminal users have the same commands.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">$ django-admin startapp application-name<\/pre>\n<p>The command execution:<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Django-Admin-Output.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-52001\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Django-Admin-Output.png\" alt=\"Django Admin Output\" width=\"1899\" height=\"1001\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Django-Admin-Output.png 1899w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Django-Admin-Output-150x79.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Django-Admin-Output-300x158.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Django-Admin-Output-768x405.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Django-Admin-Output-1024x540.png 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Django-Admin-Output-520x274.png 520w\" sizes=\"auto, (max-width: 1899px) 100vw, 1899px\" \/><\/a><\/p>\n<p>As you can see here, in our root directory we have a new directory as a demo(application-name) the application we just created. This directory contains all the files that our new application may need and we will be modifying them to achieve our goals.<\/p>\n<p>Here, you should follow some tips:<\/p>\n<ul>\n<li>Always name your applications based on very specific tasks that they are going to perform.<\/li>\n<li>Always create applications whenever the task can be achieved with a different application.<\/li>\n<\/ul>\n<p>Following these tips will bring modularity to your project. This practice will not only help you in companies or in general practice but whenever you will be building future projects you can be very specific as to which apps you want to add in your current project.<\/p>\n<p>Thus, increasing your development speed and decreasing your workload without losing any quality in your work.<\/p>\n<p>These are the files which come pre-installed when your application is created and the formats of each file for each application remains the same, that\u2019s the Django Way.<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Django-Files-Structure-Display.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-52002\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Django-Files-Structure-Display.png\" alt=\"Django Files Structure Display\" width=\"1899\" height=\"1001\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Django-Files-Structure-Display.png 1899w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Django-Files-Structure-Display-150x79.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Django-Files-Structure-Display-300x158.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Django-Files-Structure-Display-768x405.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Django-Files-Structure-Display-1024x540.png 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Django-Files-Structure-Display-520x274.png 520w\" sizes=\"auto, (max-width: 1899px) 100vw, 1899px\" \/><\/a><\/p>\n<h3>Installing Django App<\/h3>\n<p>Once we have created our application, even though it&#8217;s in the same folder as the main Django project, the application needs to be installed.<\/p>\n<p>To\u00a0<strong>install the Django application<\/strong> in the project, we will first open settings.py and modify it.<\/p>\n<p>Remember we will be modifying the main settings.py file of our Django project, not the one inside app directory.<\/p>\n<p>You will just have to type your app-name in the INSTALLED_APPS list as in the image, after adding our application in this list of Installed Apps.<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Add-App-Name-Input.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-52003\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Add-App-Name-Input.png\" alt=\"Add App Name Input\" width=\"1723\" height=\"902\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Add-App-Name-Input.png 1723w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Add-App-Name-Input-150x79.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Add-App-Name-Input-300x157.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Add-App-Name-Input-768x402.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Add-App-Name-Input-1024x536.png 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Add-App-Name-Input-520x272.png 520w\" sizes=\"auto, (max-width: 1723px) 100vw, 1723px\" \/><\/a><\/p>\n<p>Hence, we have installed our first custom Django Application.<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Name-Output.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-52004\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Name-Output.png\" alt=\"Name Output\" width=\"502\" height=\"258\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Name-Output.png 502w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Name-Output-150x77.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Name-Output-300x154.png 300w\" sizes=\"auto, (max-width: 502px) 100vw, 502px\" \/><\/a><\/p>\n<p>Now we will be adding the app to our urls.py file so that when anyone searches the URL of the app in the browser it will open this app.<\/p>\n<h3>Adding App in urls.py File<\/h3>\n<p>To add the app in the urls.py, you will again have to write some code. We will first need to create a new python file in the demo directory (app directory) and just paste this code in that file.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">from django.urls import path\r\nfrom.import views\r\nurlpatterns = [\r\npath('', views.index, name='index'),\r\n]<\/pre>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/urls.py-input.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-52005\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/urls.py-input.png\" alt=\"urls.py input\" width=\"649\" height=\"181\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/urls.py-input.png 649w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/urls.py-input-150x42.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/urls.py-input-300x84.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/urls.py-input-520x145.png 520w\" sizes=\"auto, (max-width: 649px) 100vw, 649px\" \/><\/a><\/p>\n<p>Here in the code, we are just telling our Django project that you have to initiate this function in the views.py file.<\/p>\n<p>Don\u2019t worry we will be modifying that file too.<\/p>\n<p>Here we have imported the django.urls package and path function from there. The path() function is a new function in the Django 2.0. If you are using any prior versions then please upgrade otherwise don\u2019t worry.<\/p>\n<p>We have passed 2 arguments here, first, the URL which was searched and was passed to the URL bar from the browser, the other argument is to execute the file or function which is index function in our case.<\/p>\n<p>Now, we will be modifying the urls.py file in our main Django project.<\/p>\n<p>There is only one item in the list and you will just have to add the new data.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">from django.contrib import admin\r\nfrom django.urls import include, path\r\nurlpatterns = [\r\npath('admin\/', admin.site.urls),\r\n]<\/pre>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Output-of-app-urls-2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-52006\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Output-of-app-urls-2.png\" alt=\"Output of app urls \" width=\"416\" height=\"178\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Output-of-app-urls-2.png 416w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Output-of-app-urls-2-150x64.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Output-of-app-urls-2-300x128.png 300w\" sizes=\"auto, (max-width: 416px) 100vw, 416px\" \/><\/a><\/p>\n<p>After adding the apps urls.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">urlpatterns = [\r\npath('demo\/', include('demo.urls')),\r\npath('admin\/', admin.site.urls),\r\n]<\/pre>\n<p>&nbsp;<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Output-of-app-urls.py-3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-52007\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Output-of-app-urls.py-3.png\" alt=\"Output of app urls.py \" width=\"447\" height=\"114\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Output-of-app-urls.py-3.png 447w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Output-of-app-urls.py-3-150x38.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Output-of-app-urls.py-3-300x77.png 300w\" sizes=\"auto, (max-width: 447px) 100vw, 447px\" \/><\/a><\/p>\n<p>By doing this you are telling the system to direct your server to check the URL for demo keyword. After that, direct the URL to the urls.py file inside demo application directory.<\/p>\n<h3>Creating the views.py File<\/h3>\n<p>Finally, we will be creating the views file of our Django project. This file will make the view on the browser. Just copy this snippet of code, and paste it as it is in the demo directory and views.py file.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">from django.http import HttpResponse\r\ndef index(request):\r\nreturn HttpResponse(\"DataFlair Django Tutorial&lt;html&gt;&lt;body&gt;&lt;h1&gt; Hello World DataFlair Dango tutorials&lt;\/body&gt;&lt;\/html&gt;\")<\/pre>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/views.py-file-output.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-52008\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/views.py-file-output.png\" alt=\"views.py file output\" width=\"1276\" height=\"158\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/views.py-file-output.png 1276w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/views.py-file-output-150x19.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/views.py-file-output-300x37.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/views.py-file-output-768x95.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/views.py-file-output-1024x127.png 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/views.py-file-output-520x64.png 520w\" sizes=\"auto, (max-width: 1276px) 100vw, 1276px\" \/><\/a><\/p>\n<p>As the name suggests, this file is where we will create views which the browser will render.<\/p>\n<p>As you can see the code there, we are importing a function of HttpResponse and we also created a function named index which we have used in the urls.py file.<\/p>\n<p>That function takes the request just like a server would interact with the server. We are returning HttpResponse() and inside that whatever we are writing in the argument of this function that browser will render.<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/App-display.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-52112\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/App-display.png\" alt=\"App display\" width=\"1920\" height=\"903\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/App-display.png 1920w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/App-display-150x71.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/App-display-300x141.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/App-display-768x361.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/App-display-1024x482.png 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/App-display-520x245.png 520w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/App-display-720x340.png 720w\" sizes=\"auto, (max-width: 1920px) 100vw, 1920px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>There are more responses than the HttpResponse and we will be using those in the future. That\u2019s it, we have just created our first Django app and also a web page.<\/p>\n<p>If you want, we can also open the admin app but we will be covering that in the next tutorial.<\/p>\n<p>Note: If your app doesn\u2019t start then just write like this in URL.<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/URL-Input.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-52010\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/URL-Input.png\" alt=\"URL Input\" width=\"568\" height=\"39\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/URL-Input.png 568w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/URL-Input-150x10.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/URL-Input-300x21.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/URL-Input-520x36.png 520w\" sizes=\"auto, (max-width: 568px) 100vw, 568px\" \/><\/a><\/p>\n<p>This will run your app in Django.<\/p>\n<h3>Summary<\/h3>\n<p>In this Django app tutorial, we learned more about the Django file structure and created our first app. Don\u2019t worry if the app didn\u2019t start there can be some errors. Just go through this articles code again.<\/p>\n<p>In the upcoming tutorial, we will cover more information about inbuilt apps and more Django ways. Furthermore, if you have any queries or feedbacks related to the <strong>Django<\/strong> app tutorial, you can simply enter in the comment section.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this Django tutorial, we will be creating, installing and deploying our first Django app. We will also learn to add the app in urls.py file and create the views.py file for the Django&#46;&#46;&#46;<\/p>\n","protected":false},"author":6,"featured_media":52011,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19149],"tags":[19249,19228,19250],"class_list":["post-51981","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-django","tag-create-django-app","tag-django-files-structure","tag-installing-django-app"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Create, Install &amp; Deploy Your First Django App - DataFlair<\/title>\n<meta name=\"description\" content=\"Django app tutorial covers the process to create, install, add files structure and deploy the Django application in easy steps.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/data-flair.training\/blogs\/create-install-deploy-django-app\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Create, Install &amp; Deploy Your First Django App - DataFlair\" \/>\n<meta property=\"og:description\" content=\"Django app tutorial covers the process to create, install, add files structure and deploy the Django application in easy steps.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/data-flair.training\/blogs\/create-install-deploy-django-app\/\" \/>\n<meta property=\"og:site_name\" content=\"DataFlair\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/DataFlairWS\/\" \/>\n<meta property=\"article:published_time\" content=\"2019-03-13T07:35:57+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-06-21T06:49:42+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Django-App.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"DataFlair Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:site\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"DataFlair Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Create, Install &amp; Deploy Your First Django App - DataFlair","description":"Django app tutorial covers the process to create, install, add files structure and deploy the Django application in easy steps.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/data-flair.training\/blogs\/create-install-deploy-django-app\/","og_locale":"en_US","og_type":"article","og_title":"How to Create, Install &amp; Deploy Your First Django App - DataFlair","og_description":"Django app tutorial covers the process to create, install, add files structure and deploy the Django application in easy steps.","og_url":"https:\/\/data-flair.training\/blogs\/create-install-deploy-django-app\/","og_site_name":"DataFlair","article_publisher":"https:\/\/www.facebook.com\/DataFlairWS\/","article_published_time":"2019-03-13T07:35:57+00:00","article_modified_time":"2021-06-21T06:49:42+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Django-App.jpg","type":"image\/jpeg"}],"author":"DataFlair Team","twitter_card":"summary_large_image","twitter_creator":"@DataFlairWS","twitter_site":"@DataFlairWS","twitter_misc":{"Written by":"DataFlair Team","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/data-flair.training\/blogs\/create-install-deploy-django-app\/#article","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/create-install-deploy-django-app\/"},"author":{"name":"DataFlair Team","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/2c58ecb4f73a39f0ef993f1ddfcd7b89"},"headline":"How to Create, Install &amp; Deploy Your First Django App","datePublished":"2019-03-13T07:35:57+00:00","dateModified":"2021-06-21T06:49:42+00:00","mainEntityOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/create-install-deploy-django-app\/"},"wordCount":1009,"commentCount":6,"publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/create-install-deploy-django-app\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Django-App.jpg","keywords":["Create Django App","Django Files Structure","Installing Django App"],"articleSection":["Django Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/data-flair.training\/blogs\/create-install-deploy-django-app\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/data-flair.training\/blogs\/create-install-deploy-django-app\/","url":"https:\/\/data-flair.training\/blogs\/create-install-deploy-django-app\/","name":"How to Create, Install &amp; Deploy Your First Django App - DataFlair","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/create-install-deploy-django-app\/#primaryimage"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/create-install-deploy-django-app\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Django-App.jpg","datePublished":"2019-03-13T07:35:57+00:00","dateModified":"2021-06-21T06:49:42+00:00","description":"Django app tutorial covers the process to create, install, add files structure and deploy the Django application in easy steps.","breadcrumb":{"@id":"https:\/\/data-flair.training\/blogs\/create-install-deploy-django-app\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/data-flair.training\/blogs\/create-install-deploy-django-app\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/create-install-deploy-django-app\/#primaryimage","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Django-App.jpg","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/03\/Django-App.jpg","width":1200,"height":628,"caption":"Django App"},{"@type":"BreadcrumbList","@id":"https:\/\/data-flair.training\/blogs\/create-install-deploy-django-app\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog Home","item":"https:\/\/data-flair.training\/blogs\/"},{"@type":"ListItem","position":2,"name":"Django Tutorials","item":"https:\/\/data-flair.training\/blogs\/category\/django\/"},{"@type":"ListItem","position":3,"name":"How to Create, Install &amp; Deploy Your First Django App"}]},{"@type":"WebSite","@id":"https:\/\/data-flair.training\/blogs\/#website","url":"https:\/\/data-flair.training\/blogs\/","name":"DataFlair","description":"Learn Today. Lead Tomorrow.","publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/data-flair.training\/blogs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/data-flair.training\/blogs\/#organization","name":"DataFlair","url":"https:\/\/data-flair.training\/blogs\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","width":106,"height":48,"caption":"DataFlair"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/DataFlairWS\/","https:\/\/x.com\/DataFlairWS","https:\/\/www.linkedin.com\/company\/dataflair-web-services-pvt-ltd\/","https:\/\/www.youtube.com\/user\/DataFlairWS"]},{"@type":"Person","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/2c58ecb4f73a39f0ef993f1ddfcd7b89","name":"DataFlair Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/1ce4a0e3e542444fc73bbebf83e89e8b73e2d95ccb1fcee64da9945f078b97c5?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/1ce4a0e3e542444fc73bbebf83e89e8b73e2d95ccb1fcee64da9945f078b97c5?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/1ce4a0e3e542444fc73bbebf83e89e8b73e2d95ccb1fcee64da9945f078b97c5?s=96&d=mm&r=g","caption":"DataFlair Team"},"description":"The DataFlair Team provides industry-driven content on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. Our expert educators focus on delivering value-packed, easy-to-follow resources for tech enthusiasts and professionals.","url":"https:\/\/data-flair.training\/blogs\/author\/dfteam2\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/51981","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/comments?post=51981"}],"version-history":[{"count":9,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/51981\/revisions"}],"predecessor-version":[{"id":97570,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/51981\/revisions\/97570"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media\/52011"}],"wp:attachment":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media?parent=51981"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/categories?post=51981"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/tags?post=51981"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}