request.build_absolute_uri instead of settings.BASE_URL also consider using the handy @login_required decorator instead of the if request.user... Cool video, I have seen many others (including Chat GPT) overcomplicate this process with JS.
Great Video Andreas. This is super helpful. I implemented a webhook few days back and this looks nice. I will like to see a video on multi-user authorization like patient, admin and doctor. Also PWA in Django
Strange, it still says webhooks for me, but they moved a few things around. It should not interfere with existing configurations. Thanks for the feedback.
request.build_absolute_uri instead of settings.BASE_URL
also consider using the handy @login_required decorator instead of the if request.user...
Cool video, I have seen many others (including Chat GPT) overcomplicate this process with JS.
Oh thanks for request.build_absolute_uri, thats handy to know.
Thanks for the feedback.
IMO, checking if the user is logged in only for POST requests is better UX since not all guest users will buy
@@casualengineerzombie yes, that was my thinking too, instead of not giving access to the site straight up .
@@casualengineerzombie right!!!
your videos are quite helpful for me in my career, please keep uploading new videos
So clean, beautiful and readable code👌
Great Video Andreas. This is super helpful. I implemented a webhook few days back and this looks nice.
I will like to see a video on multi-user authorization like patient, admin and doctor. Also PWA in Django
that's a very well done guide, your channel will grow very fast if you keep it up!
Also recently stripe changed webhooks into event destinations, for some reason it passed for me lol
Strange, it still says webhooks for me, but they moved a few things around. It should not interfere with existing configurations. Thanks for the feedback.