django-model-parser
Dev tools
code parser
SHOW HN2012
How HN took it
1 positive, 2 neutral or asking, 2 mixed, 1 critical, out of 6 comments about the project. Thread score +0.02.
Idea: 1 for, 1 against
The thread, comment by comment
Each row is a top-level comment and its replies, in HN's order. Select a cell to open that comment on HN.
positive neutral or mixed critical about another commenter or something else the maker
What HN said
What people liked
Neat project and good for learning parsing with the AST module
From 2 comments
Neat. The AST module was a good way for me as a novice-intermediate programmer to get better acquainted with parsing. I have a small module that parses raw Solr-style…
mattdeboard on HNParsing the text of models isn't the best way to get information about them. The _meta attribute of a model provides tons of information about a model, its fields, and how to…
natrius on HN
Objections
The _meta attribute is a better way to get model information
From 1 comment
Parsing the text of models isn't the best way to get information about them. The _meta attribute of a model provides tons of information about a model, its fields, and how to…
natrius on HN
Unclear use case for turning models into dictionaries
From 1 comment
This seems really cool, but I'm having some trouble coming up with a use case for this. Why would I want to translate my django model to a dictionary?
DanielN on HN
Parsing can't avoid running code if it is a manage.py based approach
From 2 comments
doesn't that import the modules i.e. execute them?
lmz on HNThis project is a Python module. It has to be executed at some point. Presumably, you'd generate the SQL locally by running manage.py sqlall, then get the SQL to your database in…
natrius on HN
Questions
How does the parser work without executing uploaded code?
From 1 comment
I don't understand how you can run your parser if you can't run arbitrary Python code.
natrius on HN
What is the use case for the dictionary output?
From 2 comments
This seems really cool, but I'm having some trouble coming up with a use case for this. Why would I want to translate my django model to a dictionary?
DanielN on HNCan you explain some more? That sounds like what the ORM Models already do.
__alexs on HN
Alternatives named
Django _meta attribute
From 1 comment
Parsing the text of models isn't the best way to get information about them. The _meta attribute of a model provides tons of information about a model, its fields, and how to…
natrius on HN
manage.py sqlall
From 1 comment
manage.py sqlall ?
mattdeboard on HN
django-extensions graph_models
From 1 comment
That assumes your end goal is actually using the provided models in your application. It sounds like this is using them as pure data only. I can think of a couple of reasons why…
shabble on HN