I basically want to make a small personal website that probably won’t get any attention. It will also be somewhat simple. Is Django overkill and I should use Flask or something else or is it okay? I tried learning JS and using ExpressJS but JS overall feels very loosely typed and I don’t like it. I’ve been using Python for over 3 years now.

  • @[email protected]
    link
    fedilink
    0
    edit-2
    8 months ago

    JS overall feels very loosely typed and I don’t like it

    Yep, as someone with 20+ years of JS experience it’s pretty bad. There are hoops you can jump through to improve things but they add complexity and don’t really fix the fundamentals.

    Django is an OK choice.

    Personally I would go for Laravel and PHP. In my opinion the latest version of PHP is a better language than Python (that wasn’t true with old versions of PHP) and I prefer Laravel over Django because it’s more modular and generally easier to build exactly what you want, without being influenced by the framework. Laravel is only “opinionated” in areas that will not limit your project.

    You will have to build your own back end/dashboard in Laravel though. That’s not much work but in particular make sure you get your login system right.

    Whichever way you go, I highly recommend paying for ChatGPT+ and using that instead of google/stack overflow/lemmy as the first place you go to look up how to do something. Here’s an example where I asked for a basic hello world project, then asked to expand it with Eloquent and Blade (to fetch from a database and output a html page): https://chat.openai.com/c/60ef78f4-13a6-4e62-ab7c-da4603ffed52