Django community: Community blog posts RSS
This page, updated regularly, aggregates Community blog posts from the Django community.
-
A very useful patch to django
The photo gallery application I'm working with allows you to upload batches of photographs as zip files, to populate a ... -
A very useful patch to django
The photo gallery application I'm working with allows you to upload batches of photographs as zip files, to populate a ... -
Django meetup in Palo Alto
Update Ack – I mistyped the date on this page! The meetup will be Thursday, April 27th (not Wednesday as this originally said). Hopefully that still works for anyone planning to come… Later this month, I’m speaking at the MySQL Users Conference in Santa Clara, and I’ll be in town the whole week. I suspect there’s a good number of Django users living in the Bay Area (ha), and I’d like to meet as many of them as I can. -
Merquery
Brian Beck just announced that he’s beginning work on Merquery, a full-text indexer and search engine specifically designed for developers using RAD frameworks like Django. I’m so excited about this I can barely contain myself. Right now Ellington ships with a search engine built on top of Swish-E. It’s pretty cool, and I’ve been debating cleaning it up and rolling it into django.contrib. However it has a number of major flaws that limit its usefulness: -
Quiet Enjoyment
I just found this reading through the Amazon Web Services license: EXCEPT TO THE EXTENT PROHIBITED BY APPLICABLE LAW, AMAZON DISCLAIMS ALL WARRANTIES, INCLUDING, BUT NOT LIMITED TO, ANY IMPLIED WARRANTIES OF MERCHANTABILITY, SATISFACTORY QUALITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, QUIET ENJOYMENT, AND ANY IMPLIED WARRANTIES ARISING OUT OF ANY COURSE OF DEALING OR USAGE OF TRADE. (emphasis mine). -
Free server? Probably not
As the saying goes, if it sounds too good to be true, it probably is. A few weeks ago I applied for Sun’s Niagra try-before-you-buy program hoping to get a chance to benchmark how a Django stack behaves on one of those bad boys. Unfortunatly, it appears the hype is better than the follow-through. I applied as an individual, and after about two weeks got a call from a guy at Sun wanting a credit card to pre-authorize for the entire value of the server. -
Love/Hate
Every day that I spend messing with python and django, I learn something new or find simpler ways of doing things than I've done them in the past. Tonight I've been experimenting with Django's templating language. I've been building my tag libraries to augment the django's general purpose templating language and data filters for a while now, but today I started really poking around its eqivalent of ObjectGraphNotationLanguage. The stuff I'm doing is really going to change the way we build stuff at work. At the same time, there are a lot of nasty annoyances/bugs/oversights that are hard to believe. Still, for development it kicks Java J2EE ass any day. I joke at work that django either rocks or sucks depending on whether it is an odd or even hour. It's almost 4 am now, so I guess I should turn in while it still rocks. Post to Del.icio.us -
Finalizing PyCon 2006 pictures
I found some time to finalize my pictures and notes on PyCon 2006. I tried my best to identify people in my pictures. Now you can see their names and links to their blogs. I added links to official descriptions of their talks, as well as to excellent detailed notes of some talks by Steve Holden. I advise to visit his blog, because he has notes on some talks I didn't attend.If you want to relive your PyCon 2006 memories (or implant new ones), you can do it here. While you can find blog addresses in pictures, I updated my master blog roll as well.I want to thank Andrew Kuchling, Steve Holden, Django team (Adrian Holovaty, Simon Willison, Jacob Kaplan-Moss, Matt Croydon), Ian Bicking, and all participants for the great time I had at PyCon. And now for some pictures I like: -
Renaming Climate Change
Seth Godin points out that what we should be talking about isn't climate change, it's 'Atmosphere Cancer' or something equally serious sounding. While I don't want to sound flippant about seriousness of this he may have a point. After all, the Great Bear Rain Forest used to be called the North East Timber Supply. Changing it's name was a key part of saving it. -
Renaming Climate Change
Seth Godin points out that what we should be talking about isn't climate change, it's 'Atmosphere Cancer' or something equally serious sounding. While I don't want to sound flippant about seriousness of this he may have a point. After all, the Great Bear Rain Forest used to be called the North East Timber Supply. Changing it's name was a key part of saving it. -
Free servers?
So Sun’s giving away T2000 servers for free. Well sort of, anyway: you get to try ‘em for 60 days, and according to Jonathan Schwartz if you post benchmarks of the thing’s performance, the sales department “might” let you keep the thing. Sounds too good to be true, eh? Well, I’m certainly not going to pass up the chance to fiddle with an quad-core, $8,000 server for a few months, so I filled out the form. -
Django stuff at Pycon
For anyone looking for the Django stuff I showed off at PyCon: Slides from my presentation (PDF version [9 MB]) The Sudoku app I demonstrated Source to the Sudoku app -
Django Gets Transactions
Jacob Kaplan-Moss added transaction support to the magic-removal branch of Django just a few minutes ago. It’s one of the many changes to come out of the sprint. Usage will look something like this (based on Jacob’s docs and chatting with him in #django-sprint):   from django.db import transaction   @transaction.commit_manually def view(request): # you [...] -
Versioning: The Next Big Thing
In the web development world, anyways. So, in the grand scheme of things, maybe not a huge deal to anyone else. Versioning is going to be one of the biggest problems and opportunities there is in web development, and it's going to take us at least five years to get it right. -
Form validators that always get tested
I needed to make a form that had two inputs, and wanted to require that one or both fields be filled in. While poking around in django.core.formfields, I noticed the following check: if field.is_required or new_data.get(field.field_name, False) or hasattr(validator, 'always_test'): Ah ha! What is this always_test I see here? The devs must have already thought [...] -
More PyCon 2006 pictures
I added more pictures from PyCon 2006. Enjoy. Now time for a blog roll of my photo models (far from complete):Adrian Holovaty http://www.holovaty.com/ Simon Willison http://simon.incutio.com/ Jacob Kaplan-Moss http://www.jacobian.org/ Matt Croydon http://www.postneo.com/ Derek Willis http://thescoop.org/ Ian Bicking http://blog.ianbicking.org/ Bob Ippolito http://bob.pythonmac.org/ Guido van Rossum http://www.artima.com/weblogs/index.jsp?blogger=guido Ian Maurer http://itmaurer.com/blog/ Andrew Kuchling http://www.amk.ca/diary/ Jeremy Dunck http://dunck.us/anabasis/ David Ascher http://ascher.ca/blog/ Jeremy Hylton http://www.python.org/~jeremy/weblog/ Jim Hugunin http://blogs.msdn.com/hugunin/ Phillip L. Eby http://dirtsimple.org/ Mark Ramm http://www.compoundthinking.com/blog/ Steve Holden http://holdenweb.blogspot.com/ Bram Cohen http://bramcohen.livejournal.com/ Kevin Dangoor http://www.blueskyonmars.com/ I know I missed some blogs, please let me know your blog address, and I will add it. -
Leaving MT
After all this time with MT, I've decided to go my own way. If you've ever come to the same decision, then you know that MT's export is a pretty lame format that doesn't include all of the information you might need if you migrating to another system. The solution I've come to is to create a MT template that exposes everything as a single xml document. Here's what I'm using so far: <$MTBlogID$> <$MTBlogName$> <$MTBlogURL$> <$MTBlogArchiveURL$> <$MTBlogRelativeURL$> <$MTBlogSitePath$> <$MTBlogHost$> <$MTBlogTimezone$> <$MTBlogEntryCount$> <$MTBlogCommentCount$> <$MTBlogCCLicenseURL$> <$MTEntryID$> <$MTBlogID$> <$MTEntryTitle$> <$MTEntryStatus$> <$MTEntryLink$> <$MTEntryPermaLink$> <$MTEntryKeywords$> <$MTEntryAuthor$> <$MTEntryAutherNickname$> <$MTEntryAutherEmail$> <$MTEntryAuthorURL$> <$MTEntryAuthorLink$> <$MTEntryDate$> <$MTEntryModifiedDate$> <$MTEntryCommentCount$> <$MTEntryTrackbackCount$> <$MTEntryTrackbackData$> <$MTEntryTrackbackLink$> <$MTEntryTrackbackID$> <$MTCategoryID$> <$MTCommentID$> <$MTCommentEntryID$> <$MTCommentIP$> <$MTCommentEmail$> <$MTCommentURL$> <$MTCommentDate$> <$MTCommentOrderNumber$> <$MTCategoryID$> <$MTCategoryArchiveLink$> <$MTCategoryCount$> <$MTCategoryTrackbackLink$> Post to Del.icio.us -
EN: switched to MAC
I have recently switched to Mac Tiger and finally can enjoy the OSX GUI and BSD under the hood. However I could not believe how painfull it is to setup Python for such newbie like me (more on that later). Anyway I managed to get Django running at least with the development server, so I could have started playing with that.And the very first deliverable is delicious application easily plugable into a Django project (more on that later as well).Radek -
PyCon 2006 pictures
Here in Dallas PyCon 2006 gave us an opportunity to meet many "virtual" people from Python community, and put faces to names. For those who couldn't attend I am publishing pictures and small notes on Flickr. I will add more pictures tomorrow. If anybody's name is misspelled, or missing (I didn't catch all names), or you want me to remove your name or picture, please contact me and I will change notes. I am planning to add blog addresses to people's names as well. Enjoy. For those, who missed PyCon 2006: I hope you will make it to Dallas next year for PyCon 2007! -
Thoughts on Skills Tracking in a Consulting Company
At ThoughtWorks, we have an old and boring skills and certification tracking system which managers use to find the right people for projects. The list of skills and skill categories are static. And any additions, modifications, or deletions to the list of skills or categories must be handled by an administrator. (Linking people to skills, [...] -
Setting up tools on Windows
Update 9/30/2006: when you finish this article don't forget to read more about setting up tools in the second part: Setting up tools 2. My goal is to set up working environment for Django development on Windows box. You can find a lot of information on setting up open-source development tools on Linux. Somehow it is assumed that your project should target LAMP (Linux, Apache, MySQL, Python). Windows-bound guys are advised to decorate their platform as ersatz Linux: install Apache, install MySQL, and you have WAMP (Windows, Apache, MySQL, Python). What kind of fun is that? No, we are going full WIMP (Windows, IIS, MS SQL, Python)! Below are my notes from July-August 2005 (Eclipse section was updated on 9/30/2006) on setting up a development environment on Windows XP/2003. Most probably you can apply them to Windows 2000 as well. Python Mother of all Python-related information is http://www.python.org/. It hosts Python documentation and interpreters for all platforms. Official Python.org document describes an installation of Python 2.4.2 in details. Basically you download an installer and just run it. That's it. Another option is ActiveState's ActivePython. It is very nice. Let's go with it. Eclipse This section was updated on 09/30/2006. Eclipse is the most popular … -
Clickable Bylines
Clickable bylines are the new black in online journalism according to this post and related comments at Poynter. I have to admit that I thought that this was the norm rather than the exception, since this had been the case at the Journal-World long before I arrived in Lawrence. A few days ago Dan asked me how long it would take to whip up per-writer RSS feeds. Thanks to django’s syndication framework the answer was no time at all. Over the next couple of days and with the direction of Dan and David, we tweaked the feeds to include both per-writer and per-photographer feeds. David made it easy to set up search alerts for every time a staff member posted a story. We also updated the staff bio pages to make all of this information easier to get to. Here is an example from a recent story by Joel Mathis: If you click on Joel’s name, you’ll be taken to his bio page. If you click on Contact, you’ll be taken directly to his contact form. There’s nothing new there (for us anyway). The new stuff happens on the bio page: The very top of every bio page contains more … -
WWBD
What Would Bill Do? Bill would increase debt by $851 billion Bill would require universities to disclose deals between professors, businesses Bill would let immigrant students pay in-state tuition Bill would make students wash hands before lunch Bill would halt death penalty for two years Bill would punish profiteering after events like Sept. 11 attacks Bill would aid wild Kansas Bill would throw book at parents of shoplifters Bill would sink utilities’ ‘golden parachutes’ Bill would put bite on eco-terrorists Bill would name VA center for Dole Bill would nullify vaccine lawsuits Bill would allow students to self-administer some medications at school Bill would end tax breaks for non-Missourians Bill would scale back required lobbyist reporting Bill would bar bad reviews of nursing homes from court Bill would create KU-WSU men’s basketball series Bill would make sub-Cabinet meetings public Bill would allow KU workers to leave civil service Bill would establish cemetery oversight, limit predatory fees Bill would make selling imported Canadian drugs illegal Bill would make racial profiling illegal Bill would clarify mental retardation in capital cases Bill would make officials blind to unsightly cell phone towers Bill would continue state vanpool Bill would snap Kansas out of ban … -
Building A Blog with Django #3
NOTE: The Python code in this tutorial no longer works with Django! Please read my new article, a Django Blog Redux, for code that works on newer versions of Django. The rest of this article, such as the theory, is still very much applicable and should be read alongside my newer code. In my two previous posts on this topic (Part 1, Part 2), I walked through creating a simple Blog application using the utilities provided by Django. In this, the third part of the guide, I will show you how to let your visitors leave comments on each of your postings using the Django comments framework. Then, I'll introduce a quick template and urlconf to let you see all of the posts associated with a given tag, so that your users can pick a subject and see what other posts are related to it. I'm going to just assume you've already got Django running, and the previous two parts of this guide completed and working. This section just builds on what has already been done. Adding Comments To Your Blog Django has a very cool (but undocumented, other than a line saying "We have a comments system that's easy … -
Building A Blog with Django #3
NOTE: The Python code in this tutorial no longer works with Django! Please read my new article, a Django Blog Redux, for code that works on newer versions of Django. The rest of this article, such as the theory, is still very much applicable and should be read alongside my …