Dustin Davis
Developer, Entrepreneur
Tag: django

TL;DR – After analyzing the current state of Angular 1, Angular 2, React/Redux, Aurelia, Ember & Meteor, I’m using Aurelia for my next project. Since attending ng-conf 2015,¬†and the announcement of Angular 2, I felt 2015 would be the year the internet stood still to wait for Angular 2. It turns out that wasn’t the […]

The pluralize filter is great for humanizing text in templates. But what if you want to use the same function inside of your python code. For example, let\’s say you are sending back a message via ajax. It is simple enough to make use of the same pluralize filter function in your python code: Testing […]

Even after coding in Python for the past five years I’ve never really considered myself an expert in the language because I find the more I know, the more I know I don’t know. I generally keep my code simple on purpose until I have a good reason to be complex – which for most […]

Have you ever wanted to give your model some month choices relating to integers 1-12. I would guess it’s pretty common – common enough to be included in django.contrib. Well, it is. Here is a quick tip on how to include it in a model:

Disclaimer: I am not a sysadmin. I’m just a developer. I welcome and encourage comments to improve this process! I have set up a couple of Django servers lately and taken copious notes that I have extracted from various sources. Below are the commands I issue to a fresh Ubuntu server install to get Django […]

I have been tasked with updating our real-time revenue stats at Neutron. After spending about a week going though and updating our PHP scripts I finally decided it would be worth my time and sanity to start from scratch with Python. I’m building a Django application that will store revenue stats from different sources, which […]

I’ve been putting some time into updating an old site this weekend. I noticed that the homepage was taking a long time to load – around 5 to 8 seconds. Not good. I tried caching queries but it didn’t help at all. Then I realized it was most likely due to my decision long ago […]

If you are hosting a Django site, Sentry will make your life easier. After my review of various hosting companies I decided to put EnvelopeBudget.com on Webfaction. But, I was still impressed with Digital Ocean so I kept my virtual server. Why not? It\’s only $5 per month for full root access! Because all their […]

Note: Since writing this I have become more comfortable with managing my own servers. The pricing point of DigitalOcean moved me in that direction to be honest. Since writing this, DO has created a referral program that allows you to get a $10 credit when you sign up and I in turn get a referral […]

I got a somewhat unique request on a project the other day. My client has a lead tracking system where his salesman input leads and often upload scanned documents to include with the leads. I implemented this all with standard Django forms and a formset wizard to input multiple files. My client was worried that […]