top | item 31679740

Building a personal blog using Django

22 points| rishikeshs | 3 years ago

I’m new to the world of coding and have been learning python and data science online. Im currently thinking of coding my personal blog using Django since I already know a bit of Python.

I was wondering whether this is a good choice and I would love to see some examples of personal blogs developed using django.

21 comments

order
[+] Nextgrid|3 years ago|reply
There are many different ways of building websites (such as static site generators, JAMStack, etc) so that's also something to consider. If you do want a hosted CMS then Django is a perfectly fine choice and as others mentioned, the Django Girls tutorial teaches you how to build exactly that.

Later down the line you could consider Wagtail which builds upon Django but provides extra functionality helpful in building a CMS, but for the time being I suggest you stick with Django if you're just trying to learn.

[+] jabdullatheef|3 years ago|reply
Django for a blog is just an overkill. if the plan is to learn django, pick bit more complicated project, like e-commerce or HRMS, etc.

If the goal is to have a blog, use any static site generators for easy and quick win and deploy it to netlify, github pages, etc. easier and cost effective.

[+] no-dr-onboard|3 years ago|reply
agreed. Static site generators also significantly lower your attack surface when it comes to security.
[+] xu3u32|3 years ago|reply
until you want to add comments, different SEO schemas, spam protection, search, etc
[+] stefanos82|3 years ago|reply
Go for it @rishikeshs and when you are done, write in your newly created blog the entire procedure you followed so we can learn too ^_^
[+] eddd-ddde|3 years ago|reply
Writing along as you work on something is a great way of reinforcing what you learnt as well!
[+] sphars|3 years ago|reply
A few others have commented about using a static site generator to build a blog. If you're looking into develop your python skills here's two (of many) static site generators that are written in python:

Pelican: https://blog.getpelican.com/

Nikola: https://getnikola.com/

[+] rishikeshs|3 years ago|reply
I'll check these! Thanks a lot for the suggestion
[+] WorldMaker|3 years ago|reply
I rebuilt my blog on django in college (it was previously on Drupal, IIRC, prior that rewrite) and ran it that way for many years. It was a good experience. I used the django admin as my only CMS, and it got the job done. It was an interesting way to run a blog and I was happy with it for those years.

A few years ago I got tired of running it. Cheap VPSes have an expense in management time (making sure everything is up to date, distro upgrades, etc) and I didn't think the managed django hosts that I was aware of were worth the costs and static hosts sites got cheap as free again (just like when I was a kid; back when my blog started before blog was a word) so I switched to a static generator (again). (In this case Jekyll because of Github momentum at the time I switched.)

Django is a great choice and you can have some fun with it! Others are suggesting SSGs because they are cheaper and easier (they are), but it is your blog and you should have fun with it.

[+] talolard|3 years ago|reply
I think you should clarify your goal. If you want to learn coding and specifically Django then this is a good project. If you just want a blog there are other tools that are easier like Jekyl and Hugo
[+] rishikeshs|3 years ago|reply
Yes. I thought since I’m already learning Python, Django would be an added advantage
[+] jasfi|3 years ago|reply
Django is a great MVC framework. It might be overkill for a blog as another poster wrote, but it's still a good way to learn Django.

If you ever want to learn Nim, please consider Nexus (https://github.com/jfilby/nexus) as I'm building it to be something like Django for Nim.

[+] sergiotapia|3 years ago|reply
Why jester instead of prologue? Jester had some issues in my experience running things like background jobs on Windows.