I recently started studying Django, so I created a simple blog engine. I used the Django Tutorial as a complete reference. This tutorial can be straightforward.
With this blog engine, you can list, create, edit, and delete blog entries. Pagination when there are more than 10 blog entries.
https://github.com/elm200/blogger-django
Django is often compared to Ruby on Rails as Python's full-stack web framework. It's been about 10 days since I started using it, so I can't say much, but I like it so far. Compared to Rails, there are more types, but it's easier to understand.
Rails can do a lot with a small amount of code through black magic metaprogramming, but once you get off the "rail", you don't know what to do. Rails' various DSLs, which were introduced with kindness, are not sure what they can do and how much they can do, and it feels annoying when they are used.
In that regard, Django adheres to Python's philosophy of "explicit rather than implicit," and you shouldn't do anything extra unless you take action. Rails didn't understand how it worked without loading the framework source code, but Django doesn't have to do that (at least less often).
--Sort by column on the list screen --Creating a comment section
Recommended Posts