Blog

Dealing with datetime objects and time zones in Python 3

June 29, 2019

Working with datetime objects and time zones is one of those things I always struggle with when writing code in Python. I always have to look things up and double check the outputs (such as making sure daylight savings time was taken into account) to make sure I'm doing things correctly.

This blog post is really more of a reference for myself when making adjustments to datetime objects that involve time zones so I won't ...

5 Podcasts for Bootstrapped Software Business Owners

May 26, 2019

Listening to podcasts is probably the main way I consume information nowadays. One of my favorite things to do is actually taking long walks in the late afternoon or evening while listening to podcasts. I find it both entertaining and educational, there's so much content out there.

While I listen to many podcasts about different topics, the ones I regularly listen to are mostly about running bootstrapped software businesses as they're very relevant to my ...

How to reset the primary key sequence in PostgreSQL with Django

March 19, 2019

I was working on some fairly big features involving new Django models for one of our apps and when I pushed to our staging environment, I got this error during deployment at the database migration step:

duplicate key value violates unique constraint "auth_permission_pkey" DETAIL: Key (id)=(55) already exists

It looks like new records were getting added to the auth_permission table. I was puzzled as I didn't make any changes related to the Django auth app. ...

Get Low Stock Notifications for Your Shopify Store with EZ Inventory

February 23, 2019

This feature could probably be a separate Shopify app on its own but we decided to make it part of EZ Inventory to provide more value to our customers.

In addition to being able to automatically update your products' inventory levels in your Shopify store, you can also now set up low stock alerts for each of your product variants. You'll receive an email notification almost instantly when the stock level reaches or goes below ...

Django 2.1 SameSite cookie issue with Safari 12

February 16, 2019

We just ran into this issue two days ago as we've recently upgraded the Django version for one of our Shopify apps to version 2.1.

We had a user tried to use the app and he kept getting redirected to the login page during the OAuth flow. He then tried it on Chrome and it worked fine so we narrowed down the issue to his web browser, which was Safari, specifically version 12 of Safari ...