• Implementing JWT in Django

    In the beginning there were Sessions In a typical HTTP Request/Response cycle with Django, the sessions framework is used to authenticate users. How it works in the normal case is that each visitor to the site is assigned a session id which is saved in the database. A cookie is...


  • The Effects of Prenatal Marijuana Exposure

    The Effects of Prenatal Marijuana Exposure Marijuana is the most pervasive recreational drug in America. We have started to see a shift towards legalization of the substance due to its mild effects and potential health benefits for users. The commonality of the drug and blasé regard for it has increased...


  • Models and Managers Part II: Custom Managers in Django

    If you haven’t already, you can read the first part of this series. Models and Managers Part II: Custom Managers in Django Custom managers in Django are a topic I feel people never properly understand or readily utilize in their programming. Django has created a beautifully extensible system for providing...


  • Models and Managers Part I: Where business logic goes in Django

    Models and Managers Part I: Where business logic goes in Django I want to talk about custom managers in Django, but before I can do that I want to make sure the reader has a firm grasp of what is possible in terms of implementing business logic in Django and...


  • Optimizing Queries across Foreign Keys in Django

    Optimizing Queries across Foreign Keys in Django The other day I was working on implementing a bit of business logic that had me traversing across multiple foreign key relationships in my Django models. In an effort to optimize it I did some research on how to do so and wanted...