简体   繁体   English

将 Django 部署到谷歌云平台

[英]Deploying Django to Google cloud platform

I'm working on a project which is a django backend application, the application at some point relies on the file system to read and write videos and also load tensorflow models.我正在开发一个项目,它是一个 django 后端应用程序,该应用程序在某些时候依赖文件系统来读取和写入视频并加载 tensorflow 模型。 Is it possible to use google app engine to run my django app or do I need to rent a VM?是否可以使用谷歌应用引擎来运行我的 django 应用程序,或者我需要租用虚拟机吗?

Thanks谢谢

Yes, it is possible to run your Django App on App Engine.是的,可以在 App Engine 上运行您的 Django 应用程序。

You cannot write to App Engine file system but you can read files from your own project.您无法写入 App Engine 文件系统,但可以从您自己的项目中读取文件。

A possible solution would be to use Cloud Storage to read and write videos and load tesorflow models.一个可能的解决方案是使用 Cloud Storage 来读取和写入视频并加载 tesorflow 模型。

Reading and Writing to Google Cloud Storage 读取和写入 Google Cloud Storage

How to restore Tensorflow model from Google bucket without writing to filesystem? 如何在不写入文件系统的情况下从 Google 存储桶恢复 Tensorflow model?

Yes, you can run Django on App Engine, see https://cloud.google.com/python/django/appengine for more details.是的,您可以在 App Engine 上运行 Django,有关更多详细信息,请参阅https://cloud.google.com/python/django/appengine

There are other options as well for running Django on Google Cloud, see https://cloud.google.com/python/django/ for a complete list.还有其他选项可用于在 Google Cloud 上运行 Django,请参阅https://cloud.google.com/python/django/以获取完整列表。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM