How to Remove Username from Django Rest Auth Registration and login API

If you want to remove the username field from the Login/Register api endpoints then you’ll realize this is rather easy.

»
Author's profile picture Daniel Gopar on python and django

How to Remove Username from Django User Model

If you want to have users authenticate via email (or some other attribute) instead of username then theres a few things you’ll have to do.

»
Author's profile picture Daniel Gopar on python and django

Book Review: Don't Make Me Think (Revisited)

I decided to pick up Don’t Make Me Think (Revisited) to learn more about UI/UX since I’m not that familiar with that topic. And well here is my review:

»
Author's profile picture Daniel Gopar on bookreview and design

Google App Engine's `DistributionNotFound: google-cloud-ndb`

When following Google’s migration guide for GAE 2.7 to GAE 3.7, they mention to start using their new ndb client google-cloud-ndb. This is straighforward until we ran into the following problem:

»
Author's profile picture Daniel Gopar on python

How I Stay Productive

I’ve been playing with tools and methods on how to make myself stay productive.

»
Author's profile picture Daniel Gopar on productivity

Ordering Of Pytest Fixtures And Mock Patch Objects

If you’re using the mock library and pytest’s fixtures, then you might be confused for a second about the ordering. Mock objects go first and then pytests fixtures.

»
Author's profile picture Daniel Gopar on python and pytest