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.

I’d like to know if that is a good structure and how to do that minimizing coupling between packages.

Asked By: Ezer Fernandes



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:

It’s gotten a little abstract, but I think you can still use it as a model anyway. Hope that helps!

Answered By: Mike Driscoll