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 django.contrib.auth.models import User If you can’t remember your username, you can view all users in the system. >>> [...]
March 6, 2012
·
Dustin ·
10 Comments
Tags: django, password, shell · Posted in: Programming & Internet
My Django Dev Environment: Virtualenv, pip, git, & PyCharm
Even though I’ve heard how wonderful virtualenv & pip are for managing Django development environments, I didn’t think I needed to bother learning it. But one bored day I did. I’m so glad I did. Truth is, it is just as simple and awesome as everyone says it is. And it’s been so helpful with [...]
October 14, 2011
·
Dustin ·
8 Comments
Tags: django, git, pip, pycharm, python, virtualenv · Posted in: Programming & Internet
Django Color Theme for PyCharm
Since I started writing Django, I’ve changed editors at least four times. In windows, I started with the TextMate clone, e. On mac I would use TextMate. Both can use a the django textmate theme. When I started using Ubuntu, I customized gedit to work like e & TextMate. I even contributed to the gedit [...]
June 6, 2011
·
Dustin ·
13 Comments
Tags: django, pycharm, theme · Posted in: Programming & Internet
Django smart_unicode
So my QA guy is putting an app through the ringer and presented me with the following error on a page: Caught UnicodeEncodeError while rendering: (‘ascii’, u’Utf8-\u010a\u010e\ufffd”\u0117′, 5, 8, ‘ordinal not in range(128)’) For some reason I thought UTF8 characters Just Worked™ in Django, but that was a bad assumption. The problem came from my [...]
March 11, 2011
·
Dustin ·
7 Comments
Tags: django, encoding, python, unicode, utf8 · Posted in: Programming & Internet
Integrate MailChimp with your Django App
*** Updated. For some reason, greatape has disappeared. I’ve updated this post to use MailSnake *** Here’s a quick & easy method for integrating MailChimp into your next Django application. 1. Sign up for MailChimp <– this is an affiliate link. Sign up is free, but if you decide to upgrade to a paid account you [...]
June 21, 2010
·
Dustin ·
13 Comments
Tags: django, mailchimp · Posted in: Programming & Internet
Extending Django settings.py File
When first learning Django & python, one issue I had was how to store my settings.py file in SVN. It’s been a while and things are a little hazy, but I remember my settings.py file in my local development environment was always out of sync and I was careful not to include it in updates. [...]
May 13, 2010
·
Dustin ·
13 Comments
Tags: django · Posted in: Programming & Internet
Implementing a Forgot Password Feature on a Django Site
Here is something that seems to be quite common on any type of membership site – members forget their password. This morning I was about to write this and I though surely there must be something build in. Surely. It’s turns out it is built in quite nicely and very easy to use. Start with [...]
April 22, 2010
·
Dustin ·
Comments Closed
Tags: django, forgot password, password reset · Posted in: Programming & Internet
Mobile App on Subdomain with Django
I’ve noticed a fairly common pattern arising with mobile and iPhone versions of websites using sub-domains. Clicky is an excellent example of this. They provide an iPhone version of their site at i.getclicky.com and a generic mobile version at m.getclicky.com. I want to create something similar for Inzolo.com. I assumed that Django, with all its [...]
March 3, 2010
·
Dustin ·
14 Comments
Tags: django, iphone, mobile, python · Posted in: Programming & Internet
Django: ProgrammingError: Can’t Adapt
I find I get an error like this far too often, but not often enough to remember why I got the problem the previous time. For my own sanity, I’m blogging about it for reference. The error itself is not very descriptive: Exception Type: ProgrammingError Exception Value: can’t adapt Unless there is something I’m forgetting, [...]
January 28, 2010
·
Dustin ·
11 Comments
Tags: django · Posted in: Programming & Internet
Basic Authentication on mod_wsgi
I’m currently in the process of creating an iPhone app for Inzolo. This requires an API of course. I wanted to take advantage of what was currently available for Django and I came across wapi. Time is of the essence so I decided to take the easiest route and use basic authentication for now. (I’m [...]
January 11, 2010
·
Dustin ·
12 Comments
Tags: api, authentication, basic auth, django, mod_wsgi, piston, wapi, webfaction, wsgi · Posted in: Programming & Internet


