https://www.youtube.com/watch?v=jo_B4LTHi3I
So thanks for that.I still don't like Django so much, precisely because of the fact that you're sitting here navigating through these massive config files -- and you even need Django's bundled applications to make those files in the first place. Libraries seem much cleaner to me. I guess what I'm dreaming of is a version of django where this whole talk becomes a little simpler, a sort of cookie-cutter formalism where you just start writing:
#!/usr/bin/python
import django
serve = django.server(port=8080, db=('sqlite3', 'mysite.db'))
serve.url('/admin/.*', django.admin_site())
blog = serve.app(model={
"some json model": "I don't know exactly how it works"
})
serve.url('/blog/.*', blog)
...to accomplish the same thing that you're doing in this talk. I mean, it's okay that applications often get their own folder, but shouldn't they grow into that with import statements?An open question to HN: are there libraries which do this sort of thing which I should know about?