{"id":1500,"date":"2021-05-22T15:16:21","date_gmt":"2021-05-22T12:16:21","guid":{"rendered":"https:\/\/www.etemkeskin.com\/?p=1500"},"modified":"2021-05-22T15:17:36","modified_gmt":"2021-05-22T12:17:36","slug":"running-python-django-project-in-windows-operating-system-with-bat-file","status":"publish","type":"post","link":"https:\/\/www.etemkeskin.com\/index.php\/2021\/05\/22\/running-python-django-project-in-windows-operating-system-with-bat-file\/","title":{"rendered":"Running Python Django Project in Windows Operating System with .bat File"},"content":{"rendered":"\n<p>When developing projects with <strong>Django<\/strong>, the constant and annoying work is to restart the project. In this post, if you are a <strong>Windows<\/strong> user, you can easily run your project by creating a <strong>.bat file<\/strong> on your desktop. I use Windows 10 as the operating system.<\/p>\n\n\n\n<p>You can open the following lines of code with a code editor such as <strong>Visual Studio Code, Pycharm<\/strong>, and save it on your desktop as a <strong>.bat<\/strong> extension.<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;mode&quot;:&quot;powershell&quot;,&quot;mime&quot;:&quot;application\/x-powershell&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;language&quot;:&quot;PowerShell&quot;,&quot;modeName&quot;:&quot;powershell&quot;}\">@REM Comment line : Changing the active console code page to UTF-8\nchcp 65001\n@REM Comment line : switch to project folder\ncd C:\\Users\\etem\\Desktopd\\django_proje_klasoru\n@REM Comment line : Activating the base virtual environment since I use anaconda.\ncall activate base\n@REM Comment line : Starting our project with python3.exe from Anaconda folder.\nC:\\Users\\etem\\anaconda3\\python3.exe manage.py runserver\n\nPAUSE\n<\/pre><\/div>\n\n\n\n<p>When you <strong>click<\/strong> on the file you created on the desktop, for example <strong>django_project.bat<\/strong>, your project will be run automatically.<\/p>\n\n\n\n<p>If you copy the <strong>.bat file<\/strong> you created to the <strong>C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\StartUp<\/strong> folder, your project will run automatically every time your computer starts.<\/p>\n\n\n\n<p>Good luck.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When developing projects with Django, the constant and annoying work is to restart the project. In this post, if you are a Windows user, you can easily run your project by creating a .bat file on your desktop. I use Windows 10 as the operating system. You can open the following lines of code with [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[30,4],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v16.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Running Python Django Project in Windows Operating System with .bat File - blog website<\/title>\n<meta name=\"description\" content=\"When developing projects with Django, the constant and annoying work is to restart the project. In this post, if you are a Windows user, you can easily run your project by creating a .bat file on your desktop. I use Windows 10 as the operating system.You can open the following lines of code with a code editor such as Visual Studio Code, Pycharm, and save it on your desktop as a .bat extension.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.etemkeskin.com\/index.php\/2021\/05\/22\/running-python-django-project-in-windows-operating-system-with-bat-file\/\" \/>\n<meta property=\"og:locale\" content=\"tr_TR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Running Python Django Project in Windows Operating System with .bat File - blog website\" \/>\n<meta property=\"og:description\" content=\"When developing projects with Django, the constant and annoying work is to restart the project. In this post, if you are a Windows user, you can easily run your project by creating a .bat file on your desktop. I use Windows 10 as the operating system.You can open the following lines of code with a code editor such as Visual Studio Code, Pycharm, and save it on your desktop as a .bat extension.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.etemkeskin.com\/index.php\/2021\/05\/22\/running-python-django-project-in-windows-operating-system-with-bat-file\/\" \/>\n<meta property=\"og:site_name\" content=\"blog website\" \/>\n<meta property=\"article:published_time\" content=\"2021-05-22T12:16:21+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-05-22T12:17:36+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Tahmini okuma s\u00fcresi\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 dakika\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.etemkeskin.com\/#website\",\"url\":\"https:\/\/www.etemkeskin.com\/\",\"name\":\"blog website\",\"description\":\"Etem KESK\\u0130N\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":\"https:\/\/www.etemkeskin.com\/?s={search_term_string}\",\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"tr\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.etemkeskin.com\/index.php\/2021\/05\/22\/running-python-django-project-in-windows-operating-system-with-bat-file\/#webpage\",\"url\":\"https:\/\/www.etemkeskin.com\/index.php\/2021\/05\/22\/running-python-django-project-in-windows-operating-system-with-bat-file\/\",\"name\":\"Running Python Django Project in Windows Operating System with .bat File - blog website\",\"isPartOf\":{\"@id\":\"https:\/\/www.etemkeskin.com\/#website\"},\"datePublished\":\"2021-05-22T12:16:21+00:00\",\"dateModified\":\"2021-05-22T12:17:36+00:00\",\"author\":{\"@id\":\"https:\/\/www.etemkeskin.com\/#\/schema\/person\/dcbc30282861ce578b96a79ce8789629\"},\"description\":\"When developing projects with Django, the constant and annoying work is to restart the project. In this post, if you are a Windows user, you can easily run your project by creating a .bat file on your desktop. I use Windows 10 as the operating system.You can open the following lines of code with a code editor such as Visual Studio Code, Pycharm, and save it on your desktop as a .bat extension.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.etemkeskin.com\/index.php\/2021\/05\/22\/running-python-django-project-in-windows-operating-system-with-bat-file\/#breadcrumb\"},\"inLanguage\":\"tr\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.etemkeskin.com\/index.php\/2021\/05\/22\/running-python-django-project-in-windows-operating-system-with-bat-file\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.etemkeskin.com\/index.php\/2021\/05\/22\/running-python-django-project-in-windows-operating-system-with-bat-file\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Ana sayfa\",\"item\":\"https:\/\/www.etemkeskin.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Running Python Django Project in Windows Operating System with .bat File\"}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.etemkeskin.com\/#\/schema\/person\/dcbc30282861ce578b96a79ce8789629\",\"name\":\"etemkeskin\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/www.etemkeskin.com\/#personlogo\",\"inLanguage\":\"tr\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/6af0148b790691ed24ae245fb3dc773b?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/6af0148b790691ed24ae245fb3dc773b?s=96&d=mm&r=g\",\"caption\":\"etemkeskin\"},\"url\":\"https:\/\/www.etemkeskin.com\/index.php\/author\/etemkeskinyahoo-com\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","_links":{"self":[{"href":"https:\/\/www.etemkeskin.com\/index.php\/wp-json\/wp\/v2\/posts\/1500"}],"collection":[{"href":"https:\/\/www.etemkeskin.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.etemkeskin.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.etemkeskin.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.etemkeskin.com\/index.php\/wp-json\/wp\/v2\/comments?post=1500"}],"version-history":[{"count":17,"href":"https:\/\/www.etemkeskin.com\/index.php\/wp-json\/wp\/v2\/posts\/1500\/revisions"}],"predecessor-version":[{"id":1521,"href":"https:\/\/www.etemkeskin.com\/index.php\/wp-json\/wp\/v2\/posts\/1500\/revisions\/1521"}],"wp:attachment":[{"href":"https:\/\/www.etemkeskin.com\/index.php\/wp-json\/wp\/v2\/media?parent=1500"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.etemkeskin.com\/index.php\/wp-json\/wp\/v2\/categories?post=1500"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.etemkeskin.com\/index.php\/wp-json\/wp\/v2\/tags?post=1500"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}