User Authentication is a simple concept, but when it comes to properly implementing it in Django, things can get complicated. Django offers an abundance of different authentication mechanisms: BasicAuthentication, TokenAuthentication, SessionAuthentication, and various ways to implement custom authentication mechanisms. The introduction of Django REST Framework did great things for Django. However, it introduces another layer […]
Continue readingWhy You Shouldn’t Import Functions and Classes Directly in Python
Today I was doing some programming, trying to finish up an old project that was 80% done, but I never finished. The project is an API for sharing beer ingredient data, being the avid homebrewer that I am. I was in the middle of writing some pretty simple authentication logic, when I found a weird […]
Continue readingBuilding a Web App From the Ground Up: Django Rest Framework API Development — Part 3
This post is part of a series of mine on building web applications from the ground up. It covers everything you need to know to completely finish a web application. If you haven’t been following the series, please go back and read part 1. Recap In the last part of this series we successfully setup our […]
Continue readingBuilding a Web App From the Ground Up: API Setup— Part 2
This post is part of a series of mine on building web applications from the ground up. It covers everything you need to know to completely finish a web application. If you haven’t been following the series, please go back and read part 1. In this part, I’ll show you how to start building an API […]
Continue readingBuilding a Web App From the Ground Up: Getting Started — Part 1
So you want to build a web app. Well what’s stopping you? If you’re reading this, you’ve probably already been programming for some time, but you’re just missing some of the steps. I’ve been there before. I know how frustrating it can be to know 70% of what you need to do to build a […]
Continue readingDjango Server Setup
This tutorial will show you how to serve a Django application by using PostgreSQL, Gunicorn, and NGinx on an Ubuntu server. I created this tutorial because when I started configuring my server, I had a lot of trouble finding anything useful when it came to serving Django apps built in Python 3. I found that virtually all the tutorials I could find still insisted on using Python 2. So, this will show you how to turn your Python 3 Django app into a fully fledged website.
Continue reading