Post archive

Starting a Django Conventions Project and Reference

2008 December 03

During the last month I have proposed some conventions for Django, mostly in the realm of templates. In doing so I have looked around for other documented places where conventions are mentioned. I haven't found a really good reference for Django conventions. [Brian's post](http://oebfare.com/blog ...

Post a day in review

2008 November 30

It's the end of the Post a day for a month. I did pretty well, but fell off about 3 weeks in because of work. First some stats.

Post stats

In [4]: Post.objects.published().filter(publish__year='2008', publish__month='11').count()
Out[4]: 23L

In [10]: for post in ...

The value of conventions, aka testmaker for template tags.

2008 November 27

A couple posts ago, I talked about how we should have conventions for the names that we use in Django Template Blocks. Today I will be talking about the value that is gained from this kind of structure.

Use Cases

Template Tags ...

Testmaker 0.2: Rewritten and improved

2008 November 26

About a week ago, I went ahead and re-wrote testmaker and moved it into my django-test-utils project on github. The syntax is now a bit different, and the whole thing is much improved. This is version 0 ...

Django Aggregator v2 now has tagging, and you should too.

2008 November 22

I have been doing some more work on my Django Community Aggregator / Django People v2 project. A big feature that I want to incorporate is tagging. I want people to be able to sort data by tag, among other things. I think that this is a pretty killer feature.

This ...

Gentlemans agreement on Django templates

2008 November 20

There are a lot of reusable apps out in the Django Ecosystem. I wrote a previous post about why I think that reusable apps should come with templates. There is a problem about distributing templates that I want to address with this ...

A start to the uber community

2008 November 16

Well I spent all day Saturday, and all night. Into Sunday morning hacking on some code. Probably the most productive 24 hours of my life. I have a couple of announcements, but in the spirit of post-a-day, I'll spread them out over a couple days :).

The big one, is ...

Debugging Django in Production Environments

2008 November 15

Nick had a nice post about setting DEBUG based on the hostname of the server that you're site is running on. This allows you to set DEBUG to True for your staging site, and False for your production site.

I do something along ...

Should reusable apps have templates?

2008 November 14

There is a debate among the Django community about whether people should include templates in their reusable apps.

The arguments for including them are generally that it is nice to simply install the app and have things just work. This is a really nice feature to not have to dig ...

Encouraging Testing in Django

2008 November 13

I was having a conversation with Jacob tonight about testing in Django. He has shot down testmaker for being too specific for Django core, which I almost agree with, given my grandiose plans for it before the month is out ...

Practical Django Testing Examples: Views

2008 November 11

This is the fourth in a series of Django testing posts. Check out the others in my Testing series if you want to read more. Today is the start of a sub-series, which is practical examples. This series will be going through each of the different kinds of ...

Announcing Django Crawler and django-test-utils

2008 November 10

Today I'm going to be releasing a new project, called django-test-utils. It's rather empty at the moment, but it does have one cool feature. That is my [Django Crawler](http://github.com/ericholscher/django-test-utils/tree/master/test_utils/management/commands/crawlurls.py ...

The times, they are a changin

2008 November 09

A couple posts back, I was talking about software that I use all the time. I was going through and linking to all of the software. I would go to google, type in the project name, go to the first result, and copy that URL back into my post. I ...

The problem with Django's Template Tags

2008 November 08

There are a lot of things that I love about Django. Template tags are one of them. However, they do have a couple of warts that bother me. I know that there's a problem when I actively look for another way to accomplish something instead of writing a template ...

Making a Django Uber-Community

2008 November 06

My workload at work is about to get a lot less critical and time consuming, so I was looking for a project to start on. I am really interested in the social aspects of the web, and below I will outline an idea that I think will be my next ...

Introduction to Python/Django tests: Fixtures

2008 November 05

In the first two posts of this series, we talked about how to get the basic infrastructure for your tests up and running. You should have a file with doc tests and one with unit tests. They should be linked into your django project with an `init.py ...

Introduction to Python/Django testing: Basic Unit Tests

2008 November 04

Last post we talked about how to set up and use doc tests inside of Django. Today, in the second post of the series, we'll be talking about how to use the other testing framework that comes with Python, unittest. unittest is a xUnit type of testing system (JUnit ...

Introduction to Python/Django testing: Basic Doctests

2008 November 02

This is the first in a series of blog posts and screencasts that will walk you through how to test your Django application. These posts will focus more on how to get things done in Django, but note that a lot of the content is applicable to pure python as ...

A blog post a day keeps the doctor away

2008 November 01

November blog posting month has a special moment in my Django history. It was this time last year that I really got serious into Django. With the help of James Bennett's and Marty Alchin's blog ...

Big list of Django tips (and some python tips too)

2008 October 05

We were talking about things that we wish we had known before while developing for Django the other day in IRC. I proclaimed that we should write them down somewhere. So I'm writing a post to get this effort started. Please feel free to leave comments with your own ...

Getting started with Pinax

2008 September 18

NOTE: This content is a little out of date. Some of the layout might be wrong, but the ideas are still relavent.

I went ahead today and figured that I would try out Pinax, seeing as it's been getting a lot of good press in the ...

Screencast: Django Command Extensions

2008 September 12

This is a screencast on the Django Command Extensions project. It is one of my favorite third party apps, and it gets installed in every Django environment I work in. It provides a plethora of useful manage.py commands, and a couple other little ...

Using pdb to debug management commands and unit tests (Debugging Django Series,Part 4)

2008 September 02

Screencast 4

Today's screencast is about pdb again. This time we are going to be debugging management commands, and unit tests for django. This is a little bit more powerful than the previous screencast which just introduced the basic debugging commands.

Setup

This screencast uses a couple of really ...

Using pdb, the Python Debugger (Django Debugging Series, Part 3)

2008 August 31

I had a couple of comments about my last post saying that I should be sending all of the screencasts to the aggregator because this is content and isn't spam. So I'm going to do that. Thanks for all the feedback everyone! Hope you're enjoying the series ...

Screencast 2: Logging in Django, for fun and profit

2008 August 29

This is the second screencast of a week long series.

So that I don't spam all of the Django Community Feed (Bad RSS handling has done that more than once, Sorry!) I'm only going to be posting this post and the last post summarizing all of the screencasts ...

Screencast: Debugging with the Django Error Page

2008 August 28

This is part 1 of a week long series of screencasts

Hey Everyone, I'm here to make a minor announcement. In the upcoming 7 days, I'm going to be releasing 5-7 screencasts on Django, mostly focused on debugging, and hopefully trying to throw in a couple of other ...

Using Mock objects in Django for testing the current date

2008 August 14

Today I ran into a fun problem when writing template tags at work. (I'll write another post later on the fun-ness that is testing of template tags :) In ellington we have some templatetags that test for the current time of day. ifmorning, ifnight and so on. These template tags ...

Easily packaging and distributing Django apps with setuptools and easy_install

2008 August 06

First off let me say that I know that not everyone likes setuptools and that is fine. distutils works well and is included with python. However, I believe that Python needs to get some parity with what Perl has with CPAN. Pypi is Python's ...

Testmaker .002 (Even easier automated testing in Django)

2008 July 26

Okay, Well I have been hacking away at django-testmaker for the last couple of days based on some ideas from the community. It has gotten a lot better, so here is another blog post showing what's new.

First let me just say how awesome the Django community is, and ...

Automating tests in Django

2008 July 23

Updated

At work lately we've been writing a bunch of tests for all of the work we've been doing. This is generally a good thing (tm). I was getting tired of manually having to write all of the code to test the views ...

Setting up Django and mod_wsgi

2008 July 08

I was just convinced to setup mod_wsgi on my server instead of mod_python, and I'm going to write up how I did it. All of the documentation I found on the internet was really hard to follow, so I'm going to distill it here the best that I ...

Schoolwork

2007 November 25

Implemented Background processes, the ps command, and the kill command in GeekOS today for my Operating System class (hard shit!). Really neat stuff though.

I am also hacking arounc w/ Django to implement my independent study. So busy...