50
submitted 1 year ago* (last edited 1 year ago) by TheDude@sh.itjust.works to c/python@sh.itjust.works

With r/python out for the next 48 hours, here’s a post to promote continuing discussion a language we all love. Python.

you are viewing a single comment's thread
view the rest of the comments
[-] 0jcis@sh.itjust.works 6 points 1 year ago

I’m building a back-end for my website without a framework.

[-] Googleproof@sh.itjust.works 4 points 1 year ago

Out of interest, why are you avoiding using a framework? I use Django literally every day for web dev, so I'm curious as to what your site requirements are like.

[-] 0jcis@sh.itjust.works 3 points 1 year ago

I tried Django at the beginning, it is very nice and I will most likely use it if I need to build a professional website, I wanted to understand and learn better how it all works and for my personal not serious website it was a perfect opportunity, so I started messing around and testing without a framework. Coding my own back-end is very fun for me and I’m learning a ton this way. Currently I am making an authentication system where if a client is not authenticated, it will get redirected to a login page where a code is displayed and a user has to send that code to my server’s whatsapp. Once the server validates the matching code from whatsapp, it will authorise the client and redirect back to the original requested page. This system will be perfect for me and my friends to access my website!

[-] Googleproof@sh.itjust.works 3 points 1 year ago

Ah, cool, that makes good sense. Yeah, it'll be a good learning process, as Django does handle so many of those things basically like magic and you never really need to learn what's going on under the hood. Good luck!

[-] zeldis@sh.itjust.works 3 points 1 year ago
[-] 0jcis@sh.itjust.works 2 points 1 year ago* (last edited 1 year ago)

Python of course! I am using hypercorn ASGI server, it supports HTTPS/3.

[-] zeldis@sh.itjust.works 3 points 1 year ago

Oh of course lol, I didn't even realize where I was. And right on, sounds like a fun experience. I haven't messed with async python too much myself but it seems like a powerful way to run a webserver

[-] 0jcis@sh.itjust.works 3 points 1 year ago

Yes! Coding it is a blast! I started it just to better understand how all the HTTP communications work and I love customising my own personalised back-end, implementing new features and improving. I’m so hooked I can’t even sleep at nights, thinking about it.

this post was submitted on 12 Jun 2023
50 points (100.0% liked)

Python

1921 readers
1 users here now

A community for talking about the Python programming language.

founded 2 years ago
MODERATORS