Blog Archives

Virtualenv Bash Shell Function

By default, virtualenv uses /usr/bin/python. I find this a pain because I run the latest Python out of /usr/local/bin. Each time I create a new virtualenv environment, I need to type: virtualenv -p /usr/local/bin/python {env} If you use Bash, create

Tagged with: , ,
Posted in Computing, Programming, Python

Python Under the Hood: A simple generic model, part 1

Tonight I was digging through the SQLAlchemy and SQLSoup source code to help figure out what I’m doing wrong with my object mapping for in-memory sqlite. While doing this, I figured out how to make a very simple but powerful

Tagged with:
Posted in Computing, Programming, Python

django-admin.py: Unknown command: ‘createsuperuser’

tl;dr When you need to create a superuser, the official Django documentation says to run django-admin.py createsuperuser. Instead, run the following: $ python manage.py createsuperuser The Details While putting together a tutorial for Django, I started to explore how a project

Tagged with: , , , ,
Posted in Computing, Django, Programming, Python, Web Frameworks