I covered the basics in one of my articles on Video generation with Python, and today I want to write about different ways to assemble text on the image so it does not look too bland.Read More »
Category: Long post
Text wise long or emotionally heavy posts
How to add GIF to a static background (Python + OpenCV). Video Generation series (Part 1)
A bad solution (with Pillow) and a good solution (with OpenCV).
- Bad Solution
- Good Solution
- Plans for this series
Remote MongoDB + AWS LightSail + CentoOS 7 + SupervisorD ( + FirewallD + Basic Authentication)
At this point I feel like the most badass devops in my village.
- Creating AWS Lightsail Instance
- Setting Up AWS Lighsail Instance
- Static IP
- Setting Up MongoDB
- Basic Authentication
Social Login for Django Rest Framefork for newbies (a.k.a. for me)
Last year I wrote a guide for django-allauth, and now it’s time for DRF. I will be using drf-social-oauth2 for social authentication.
As far as I understood this is a collaboratory project, and it is currently maintained by Wagner De Lima.
You can find very useful materials here and there, but the purpose behind this tutorial is to help set up social authentication for your DRF-based API by following clear and easy steps. So that nobody suffers from the lack of base knowledge or the lack of time – been there, done that.
Table of contents:
1. Registering an app in Facebook and Google developer’s panels
2. Getting User Access Token from Facebook/Google
3. Installing drf-social-oauth2
4. Creating a local app
5. Converting Token from Facebook/Google into a DRF Access token
6. Accessing things with this new Token
7. Refreshing Access Token
8. Changing Access Token Expiration
Django-allauth tutorial (Part 2): Email Confirmation with Gmail
A note on Email confirmation.
Part 2 is about Email Confirmation. Check out the whole series Django-allauth.Read More »
Django-allauth tutorial (Part 1): Setup & Facebook Login (upd. August 2020)
I came to peace with methodically reading the documentation, but you might’ve not. I’ll do it for you. I want it all to work and I only want to write it down once. Buckle up.
Part 1 is about Installation and Facebook Login. Check out the whole series Django-allauth.
Other parts will be about profiles and all kinds of forms and user interractions.Read More »
To ‘through’ or not to ‘through’? (updated 03.07)
Should I use a ‘through’ table for my Model to Model relation? It was never a question for me two years ago.Read More »
Some challenges a new web scrapper may face with Beautiful Soup in examples 👷♀️🚸🏗️ – Part 2
This is a part two, that is basically a Managing Children block, because it turned out too big to fit.Read More »
Some challenges a new web scrapper may face with Beautiful Soup in examples 👷♀️🏗️😕 – Part 1
Just a collection of things I believe are worth noticing. It escalated quickly.
I spend a week updating this post and every other morning was a torture – I tried making fantasy methods that were so absurd I couldn’t grasp on what the heck I was thinking 12 hours ago.Read More »
Some Migration errors in Django 🤯 (emotional long post)
migrate and yet Django dares to throw an error? Incomparable betrayal! Let’s look through several cases.
For ages encountering migrations errors, I have been wipin the entire database and migrations files. Until one day an error occurred at a production server. There was no other option but to calm down and learn how to fix it.Read More »