How to Reset a Django Admin Password
This is just a quick post to give a tip on how to recover or reset your Django admin username and/or password. Use your django shell to query the User model. $ python manage.py shell >>> from...
View ArticleReplacing Myself
Back when I was working as a Quality Analyst my real desire was to code. I wanted to be a programmer. Instead of finding a new job, I found small jobs through a site called GetAFreelancer, now known as...
View ArticleDjango Custom Upload Handler to Compress Image Files
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...
View ArticleDigitalOcean, Heroku, Linode & Webfaction: Hosting Showdown
Where do you fit on this scale? Sysadmin -> DBA -> Backend Programmer -> Frontend Programmer -> Designer I have a range in the middle, but lack on each end of the spectrum. So when it comes...
View ArticleSetting Up Your Own Sentry Server
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...
View ArticleDjango Textile/Markdown Template Caching Speedup
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...
View ArticlePython, Django & the Google Adsense API
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...
View ArticleSetting up a Django Server with PostgreSQL, Nginx, Celery & RabbitMQ
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...
View ArticleDo Want You Desire, Money Will Follow
A friend of mine posted the following video on G+ recently: It’s a good video and it led to some interesting thoughts and discussion. I have asked myself on a number of occasions “What do I really...
View ArticleDjango MONTH_CHOICES
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...
View ArticleSetting Up a ZNC IRC Bouncer
First of all, I’ll skip the discussion on what ZNC and IRC are, as you likely know if you are reading this post. I use IRC with my development team at work. It’s helpful to stay logged in 24/7 to keep...
View ArticleRefactoring to Save 4805 Lines of Code
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...
View ArticleMemcachedKeyLengthError: Key length is > 250
Lately I was getting this error frequently as I was using Django’s built in cache_page decorator to cache some views. memcache in check_key MemcachedKeyLengthError: Key length is > 250 Basically the...
View ArticleDjango Pluralize Outside of Templates
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....
View Article2014 Year In Review
I’ve read a few year-end review posts recently and I find them fascinating. I wish I had my own archives of year-end reviews to look back on. So I thought I’d jump on the bandwagon and get started this...
View ArticleSetting up a Signed SSL Certificate on Nginx
I recently needed to update the SSL certificate on EnvelopeBudget.com. Below are the notes I took in the process for when I need to do it again in 5 years. Step 1 Purchase an SSL certificate. I bought...
View Articleng-conf Advanced Workshop Review
Yesterday I attended the advanced workshop at ng-conf. I thought I’d share some of the highlights. There were four rooms for the advanced workshops. We stayed in the same room while the instructors...
View ArticleUsing Gmail for Support
I’ve been using django-helpdesk for my support software on my Django powered site. It works well enough, but I didn’t really like it. I started looking around for “better” support tools. I actually...
View ArticleWhy Aurelia over Angular, React, Ember or Meteor
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...
View Article
More Pages to Explore .....