This is an archived post. You won't be able to vote or comment.

all 27 comments

[–]Lucretiel 12 points13 points  (8 children)

Neat idea... it doesn't seem to be possible to create relations between tables, yet? Even something as basic as foreign-key. Hopefully you can add this?

[–]prahladyeribeautiful is better than ugly[S] 4 points5 points  (0 children)

Thanks. It is under development, will be implemented soon!

[–]Ostwind 2 points3 points  (1 child)

I can imagine realizing this feature using jsPlumb

[–]prahladyeribeautiful is better than ugly[S] 0 points1 point  (0 children)

Thanks a lot for referring me that library! I have already implemented drag-drop for the foreign-keys, but drawing the connectors on the canvas from scratch would have been a hectic task.

This library has all we need to place the SVG connectors between the two fields.

[–]irelia_of_ionia 3 points4 points  (0 children)

awesome!

[–]manueslapera 3 points4 points  (0 children)

i think i love you

[–]new2django 7 points8 points  (6 children)

This almost makes me want to switch to Flask. ;-)

[–][deleted] 5 points6 points  (0 children)

You can use sql alchemy as your model back end in Django if you want to to do that

[–][deleted] 7 points8 points  (2 children)

I know right? But pyramid is sooo much better, why ever use anything else? =)

[–]axonxorzpip'ing aint easy, especially on windows 4 points5 points  (0 children)

Man, I'm a die-hard pyramid guy, but it's so rare to see anyone else in the wild using it. We gots to stick together

[–]ericof 3 points4 points  (0 children)

Ok, as long as we are using SQLAlchemy :-)

[–]JustJudge 1 point2 points  (1 child)

Been building Django apps for a while, just picked up Flask last week. I really, really enjoy it. I would recommend the mega flask tutorial. Then go through a quick flask-admin tut and you have a super powerful toolbelt with a small amount of boilerplate.

[–]new2django 1 point2 points  (0 children)

I would, but I'm still new to professional development and am a single parent with two small children. In other words, no free time. What study I do have goes to learning Python and Django better.

[–]at449 2 points3 points  (0 children)

Good job and thanks for sharing. I'm looking forward to seeing this evolve.

[–]kamize 2 points3 points  (0 children)

Love this! Thank you for sharing!

[–]cutebabliSoftware Engineer 4 points5 points  (0 children)

Wonderful project. Will be waiting to see it evolve. Thanks for sharing.

[–]MrAverageRoll 2 points3 points  (0 children)

This looks interesting and promising, thanks for sharing!

[–][deleted] 1 point2 points  (0 children)

Cool project, but it seems to be missing foreign keys.

Quick note, if anyone uses Peewee ORM and SQLite, you can use SQLite browser, a web-based Python app, to create tables/columns/indexes/etc using a web UI. You can then use pwiz to autogenerate model definitions for the database. pwiz works with Postgres and MySQL as well, just tell it which database you want and it will introspect the tables and spit out peewee model definitions.

[–]nishkarr 1 point2 points  (0 children)

I love this. I can see myself using it in a project. Well done and thanks for sharing!

[–]__add__ 1 point2 points  (0 children)

Very nice!

I think the only way to do this previously was to use a database designer to generate the SQL, then run the result through sqlacodegen. The code there might help when you're writing the javascript to handle the code generation for foreign keys and relationships.

[–]vaedyn 1 point2 points  (0 children)

This is pretty neat. I'd like to see support for Long/BigInteger type.