1.
 
2 points by readevalprint 4 months, 1 week 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.
 
2 points by readevalprint 4 months, 1 week 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
3.
 
1 point by readevalprint 4¬†months, 1¬†week ago | discuss | parent | on: Show ūüźć: Sneklang - Experimental restricted subset of Python for safe evaluation
Good question, I should expand on this in the readme too. Safe evaluation means, untrusted code has bounded memory usage, can only access explicitly provided scope, only access to whitelisted functions and attributes, and can only import explicitly whitelisted modules. So I put my server where my mouth is and if you can figure out a way to get a 500 error, I'll be impressed.
4.
 
3 points by readevalprint 4 months, 1 week ago | discuss | on: Single page Django app
Using `ROOT_URLCONF=__name__ ` in urlconf is a good idea! Check out my version too. https://github.com/readevalprint/mini-django/blob/master/mini_django.py
5.
 
2 points by readevalprint 4 months, 1 week ago | discuss | on: Django’s CBVs were a mistake
I think the best of both worlds is possible with DRF's `extra_actions` You get a dedicated endpoint that uses the same permissions and queryset, but can easily make custom logic that doesn't fit in the whole class. [https://www.django-rest-framework.org/api-guide/viewsets/#marking-extra-actions-for-routing]
6.
 
2 points by readevalprint 4¬†months, 2¬†weeks ago | 2 comments | on: Show ūüźć: Sneklang - Experimental restricted subset of Python for safe evaluation
Hey Pythonistas, This is a project that I've been working on for a while now and want to see if anyone can break it or any has any feedback in general.
More