sqlalchemy PostgreSQL数据库Django

发布于 2025-02-09 20:16:37 字数 218 浏览 3 评论 0 原文

我是Django的新手,关于我是否必须重新输入数据或可以使用Postgres数据库中的现有数据,并道歉,如果以前询问此问题,请道歉。

我有一个使用Sqlalchemy Orm创建的Postgres数据库。我将此数据库用于数据分析,并希望为数据显示器创建一个Web应用程序。我知道Django拥有自己的建模系统和ORM,因为我使用Sqlalchemy的ORM创建了此信息,因此我是否必须从头开始重新创建数据库?

I am new to Django and have a question in regards to whether or not I have to re-enter data or can use existing data from a postgres database and apologize if this has been asked before.

I have a Postgres database in which I created with SQLAlchemy ORM. I use this database for data analysis and want to create a web app for the data presentation. I know that Django has its own modeling system and ORM, do I have to recreate the database from scratch since I created this with SQLAlchemy's ORM?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

只是偏爱你 2025-02-16 20:16:37

您可以使用Django的InspectDB命令。

You can use inspectdb command from Django.

https://docs.djangoproject.com/en/4.0/howto/legacy-databases/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文