Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Django models as output #2272

Open
briceparent opened this issue Jan 16, 2025 · 0 comments
Open

Django models as output #2272

briceparent opened this issue Jan 16, 2025 · 0 comments

Comments

@briceparent
Copy link

Hello! Thanks for this awesome project!

I was wondering what would be the path to generate a new ouput format, which would be made of valid Django models (using Django's ORM). Do you foresee any major issue that would make this hard to achieve? If I can find some time, I'd happily try to work on it, I know Django quite well, but as I'm just starting to use this package, I'm not yet aware of the complexity to achieve such a goal.

Is your feature request related to a problem? Please describe.
Django's ORM is quite popular, and allowing to generate models would help me automate the integration of some open data with a json schema format into relational databases. It would also allow the use of Django's migration system to quickly update the database with few human actions, if any. It also allows to use the many tools available to see and use the database (like external packages or the Django admin).

Describe the solution you'd like
I'd like a little bit of guiding, especially for the method to employ to decide which field types (for example) to use, how the relations work, and how to pass such data to the templating system. Or if someone has already worked on this, his feedback on the project, as maybe it's not a new idea but it's just not feasible.

Describe alternatives you've considered
I've considered trying to use this package as an intermediary step, generating a simple formatted file, that I could use with an external tool to generate the Django models. But the extra step seems to add complexity more than anything else.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant