3 points by sebst 1 year, 1 month ago | 7 comments | on: Ask PN: what is the database schema for Pythonic news?
It uses Model Inheritance: https://docs.djangoproject.com/en/2.1/topics/db/models/#model-inheritance This is generally not considered a best practice. I used it, however, because PN initially started as an idea for a Django course and I wanted this topic to be covered.


 
2 points by hackernews 1 year, 1 month ago | 4 comments | parent | on: Ask PN: what is the database schema for Pythonic news?
PN is using a single table to store both posts and comments. What about the hacker news i guess it does the same.
 
2 points by hackernews 1 year, 1 month ago | 3 comments | parent | on: Ask PN: what is the database schema for Pythonic news?
Anyone knows?
 
2 points by readevalprint 1 year, 1 month ago | 2 comments | parent | on: Ask PN: what is the database schema for Pythonic news?
Originally flat files :) I ran a HN fork for a while. https://github.com/wting/hackernews/blob/master/news.arc#L73-L76
 
1 point by sebst 1 year, 1 month ago | discuss | parent | on: Ask PN: what is the database schema for Pythonic news?
What have your experiences been with running a community like this?
 
2 points by readevalprint 1 year, 1 month ago | discuss | parent | on: Ask PN: what is the database schema for Pythonic news?
It's hard seeding it with content initially until it's self sustaining.
 
2 points by fdafdsafdas 1 year, 1 month ago | 1 comment | parent | on: Ask PN: what is the database schema for Pythonic news?
Are you still planning on creating this course? I think it would be amazing for there to be a course to create a Pythonic News clone!!
 
1 point by sebst 1 year, 1 month ago | discuss | parent | on: Ask PN: what is the database schema for Pythonic news?
Yes, I do. I'm a bit behind my time schedule.