« Big list of Django tips (and some python tips too) | Introduction to Python/Django testing: Basic Doctests »
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 post a month streak, I got an incredibly valuable insight into Django. It showed me a lot of the power and other great things about Django (especially the community).
In that spirit, I figured that I would jump on the blog post a month bandwagon (that looks like it's going to be big in Djangoland this year). All of my posts won't be about Django, most of them will probably be about programming, or technical in nature. However, I promise nothing along these lines. Writing 31 posts back to back is quite a lot of work. So I might blank out somewhere halfway through for a day and resort to posting my philosophical musing that used to be most of this blog. You are thusly warned ;)
I mentioned that some other people in the community are doing post-a-day for the month. So expect to get your fill of awesome Django and Tech related content. Brian Rosner, Eric Florenzano, Justin Lilly, James Tauber, and Greg Newman will be trying this gargantuan task along with me!
Some of the things that you can look forward to in this month of blog posts from my side:
I hope that you all stayed tuned and even join in on these posts throughout the month. In talking about doing it, one of the big wins of doing it at the same time was to enable the separate view points on the same topic to be discussed. The point of blogs is to have a discussion, and I think it will be neat to see what kind of discourse we have throughout this month.
It looks like James Tauber has already posted his first functional combinatorial mind bender over on his blog already. Let the games begin!
And because I feel bad that there isn't really any content in this post, here is a little tip:
Doing template testing is a pain sometimes because it suppresses your errors. You can load your templates on the command line to test them, and it will show you the errors if they are having any.
>>> from django.template.loader import get_template
>>> get_template('mine/index.html')
<django.template.Template object at 0xa833d0>
>>> get_template('mine/error.html')
Traceback (most recent call last):
[Chopped a bunch off]
File "/usr/lib/python2.5/site-packages/django/template/__init__.py", line 362, in find_filter
raise TemplateSyntaxError("Invalid filter: '%s'" % filter_name)
django.template.TemplateSyntaxError: Invalid filter: 'wtf'
This is incredibly useful, and great for debugging templates without worrying about caching and other things like that. Also note that this isn't anything special used just for testing. This is actually the way to load templates inside of your code. Check out the docs for more. select_template is another really useful thing to know about, so check it out!
Posted at 6 a.m. on November 1, 2008
Comments: 2
Tags: debugging , django , post-a-day , template
Announcing Django Crawler and django-test-utils
Debugging Django in Production Environments
Should reusable apps have templates?
Welcome to the home of Eric Holscher on the web. I talk about software development, mostly in the realm of Django. I am interested in the real time web, testing, mobile apps, and other things.
Why Read the Docs matters
3 months, 3 weeks ago (Comments: 7)
Read the Docs Update
1 year, 1 month ago (Comments: 2)
Using Reviewboard with Git
1 year, 3 months ago (Comments: 0)
Read the Docs Updates
1 year, 4 months ago (Comments: 1)
Handling Django Settings Files
1 year, 4 months ago (Comments: 12)
Required Reading
1 year, 6 months ago (Comments: 0)
Using Haystack to index non-database content
1 year, 6 months ago (Comments: 4)
Correct commands to check out and update VCS repos
1 year, 6 months ago (Comments: 0)
Site upgrades
1 year, 6 months ago (Comments: 0)
Building a Django App Server with Chef: Part 4
1 year, 6 months ago (Comments: 1)
Large Problems in Django, Mostly Solved: Delayed Execution
Setting up Django and mod_wsgi
Building a Django App Server with Chef: Part 1
Screencast: Django Command Extensions
Big list of Django tips (and some python tips too)
Handling Django Settings Files
Lessons Learned From The Dash: Easy Django Deployment
Building a Django App Server with Chef: Part 2


Comments
1 kevin says...
can't wait to see what you cook up! great tips as well :)
Posted at 4:31 p.m. on November 1, 2008
2 greg.newman says...
Looking forward to your posts and hoping for some great screencasts!
Posted at 4:59 p.m. on November 1, 2008