[英]Project structure for desktop applications using SQLAlchemy and wxPython
I want to create a desktop application using SQLAlchemy and wxPython, but I'd like to structure the project in a way similar to django projects, using django app-like packages (related models, views and tests in the same package) and settings and main module in the root directory. 我想使用SQLAlchemy和wxPython创建一个桌面应用程序,但是我想以类似于django项目的方式构建项目,使用django app-like包(相同模型,视图和测试在同一个包中)和设置,以及根目录中的主模块。
I'd like to know if that is a good structure and how to do that minimizing coupling between packages. 我想知道这是否是一个很好的结构,以及如何最大限度地减少包之间的耦合。
You can certainly do it that way. 你当然可以这样做。 I recently started a project with another fellow to demonstrate one way to do just this sort of thing.
我最近与另一位研究员开始了一个项目,展示了一种方法来做这种事情。 You're welcome to take a look at how we separate all this stuff out here: https://bitbucket.org/driscollis/medialocker
欢迎您来看看我们如何将所有这些内容分开: https : //bitbucket.org/driscollis/medialocker
It's gotten a little abstract, but I think you can still use it as a model anyway. 它有点抽象,但我认为无论如何你仍然可以用它作为模型。 Hope that helps!
希望有所帮助!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.