Programming

django-softdelete project on github

Recycle_Bin

Inspired by a post on override the default model manager to support soft-deleting objects in the database, I decided to implement it into one of my projects.  (Yes, I know it’s an old post but it was new to me!).

However, just being able to filter the query sets returned to exclude items which had deleted=true wasn’t enough for what I wanted to do.  Nor was just customizing the django’s admin interface to filter by on whether or not deleted was true or false.  I wanted the modified manager and objects to soft-delete all related objects (models that referenced the object-being-deleted via a ForeignKey).

Thus, the django-softdelete project was born.
(more…)

django-apikey Version Bumped

House_key

I haven’t spent that much time on github until recently.  Poking around there led me to create my first project repository and put in up for anyone to use:  django-apikey.  (The original post/announcement can be read here:  “django-apikey — Key Based Authorization For RESTful Django Applications”)

It quickly got some feedback, all of which was very useful.  One commenter suggested making some unit tests for the code, which forced me to learn how to write test cases for Django.  Another person forked the code and made the stylistic changes to make it compliant with PEP 8.

(more…)

Sending HTML Email From Python

E-mail

Since I posted about using Python to send HTML email, things have changed in Python’s standard library.  While that method still works, it’s better to use the new email package.

(more…)

django-apikey — key based authorization for RESTful django applications

House_key

I just created a git repository for django-apikey, which provides an API key-based authorization backend for use with django REST services. Currently, it works with django-piston, but I do plan on adding support for other django REST packages.
(more…)

Project Euler Problem #2

Euler_main

It’s been a bit of time since my last post, but now it’s back to going through Project Euler.  The second problem works with a favorite problem in computer science:  Fibonacci numbers(more…)

Next Page »