{"id":372421,"date":"2023-07-14T16:39:43","date_gmt":"2023-07-14T15:39:43","guid":{"rendered":"https:\/\/blog.jetbrains.com\/?post_type=pycharm&#038;p=372421"},"modified":"2024-07-15T15:10:49","modified_gmt":"2024-07-15T14:10:49","slug":"build-django-apps-on-google-cloud-with-pycharm-and-cloud-code","status":"publish","type":"pycharm","link":"https:\/\/blog.jetbrains.com\/zh-hans\/pycharm\/2023\/07\/build-django-apps-on-google-cloud-with-pycharm-and-cloud-code","title":{"rendered":"Build Django Apps on Google Cloud With PyCharm and Cloud Code"},"content":{"rendered":"\n<p>In this tutorial, you\u2019ll learn how to build and run your applications both in a local Kubernetes cluster (Docker Desktop or Minikube) and remotely in Google Kubernetes Engine using Cloud Code and <a href=\"https:\/\/www.jetbrains.com\/pycharm\/web-development\/django\/\" target=\"_blank\" rel=\"noopener\">PyCharm Professional<\/a>. This will allow you to focus on coding, with the Google Cloud Code plugin taking care of the rest.<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"Remote Development in PyCharm Professional Using Google Cloud Code\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/cqIz9aR8bMk?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<p>The tutorial will cover the following topics:<\/p>\n\n\n\n<ul>\n<li><strong>Introduction to remote development:<\/strong> You\u2019ll learn how to set up your development environment and connect to a remote server using PyCharm.<\/li>\n\n\n\n<li><strong>Installing the GCloud CLI &amp; SDK:<\/strong> You\u2019ll learn how to install the Google Cloud CLI and SDK, which are essential tools for managing and deploying applications on Google Cloud.<\/li>\n\n\n\n<li><strong>Creating a new project in PyCharm using the Cloud Code plugin:<\/strong> You\u2019ll learn how to use the Cloud Code plugin for PyCharm to create a new Django project and connect it to your Google Cloud project.<\/li>\n\n\n\n<li><strong>Writing REST APIs using the Django REST framework:<\/strong> You\u2019ll learn how to use the Django REST framework to create REST APIs that can be used to interact with your data.<\/li>\n\n\n\n<li><strong>Setting up and running apps in Google Kubernetes Engine (GKE):<\/strong> You\u2019ll learn how to deploy your Django REST API to Google Kubernetes Engine (GKE), which is a managed Kubernetes service that makes it easy to deploy and scale containerized applications.<\/li>\n<\/ul>\n\n\n\n<p>If you prefer to read text instead of watching videos, here you can find a <a href=\"https:\/\/www.jetbrains.com\/pycharm\/guide\/tutorials\/cloud-code-pycharm\/\" target=\"_blank\" rel=\"noopener\">text version<\/a> of this tutorial.<\/p>\n\n\n\n<p>If you are a Python or Django developer who wants to improve their developer productivity, then you should definitely check out PyCharm and Cloud Code.<\/p>\n\n\n\n<p>Here are links to the resources you\u2019ll need:<\/p>\n\n\n\n<ul>\n<li>Cloud Code for PyCharm: <a href=\"https:\/\/plugins.jetbrains.com\/plugin\/8079-cloud-code\" target=\"_blank\" rel=\"noopener\">https:\/\/plugins.jetbrains.com\/plugin\/8079-cloud-code<\/a><\/li>\n\n\n\n<li>Google Cloud Platform Console: <a href=\"https:\/\/console.cloud.google.com\/\" target=\"_blank\" rel=\"noopener\">https:\/\/console.cloud.google.com\/<\/a><\/li>\n\n\n\n<li>PyCharm Professional: <a href=\"https:\/\/www.jetbrains.com\/pycharm\/web-development\/django\/\" target=\"_blank\" rel=\"noopener\">https:\/\/www.jetbrains.com\/pycharm\/web-development\/django\/<\/a><\/li>\n<\/ul>\n\n\n\n<p>I hope this blog post has helped you to learn more about PyCharm and Cloud Code. If you have any questions, please feel free to leave a comment below.<\/p>\n","protected":false},"author":1398,"featured_media":372724,"comment_status":"closed","ping_status":"closed","template":"","categories":[89,2347],"tags":[8194,8191,726,3302,792],"cross-post-tag":[],"acf":[],"_links":{"self":[{"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/pycharm\/372421"}],"collection":[{"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/pycharm"}],"about":[{"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/types\/pycharm"}],"author":[{"embeddable":true,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/users\/1398"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/comments?post=372421"}],"version-history":[{"count":6,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/pycharm\/372421\/revisions"}],"predecessor-version":[{"id":493944,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/pycharm\/372421\/revisions\/493944"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/media\/372724"}],"wp:attachment":[{"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/media?parent=372421"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/categories?post=372421"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/tags?post=372421"},{"taxonomy":"cross-post-tag","embeddable":true,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/cross-post-tag?post=372421"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}