Django community: Community blog posts RSS
This page, updated regularly, aggregates Community blog posts from the Django community.
-
Portuguese translation of Django in the trunk
The Portuguese(pt_PT) translation of Django is now in the trunk. svn co http://code.djangoproject.com/svn/django/trunk/ -
EN | Console on Windows without Admin rights
I am working in the corporate environment. And based on the fact that I am not in the corporation structure set in the boxes of developers, I have quite limited access to the functionality of my Windows notebook even though I work in IT. Highly limited access. I cannot even run commands from the command line. To be fair, though, this is quite common practice, which saves time to my fellow IT colleagues when something gets broken. On the other hand it highly limits me, when some tasks can be done quickly using commands from the command line.How is this related to Django?Believe me or not, it is much faster (read less stressful) for me to setup a small running intra-web application in 2 hours than asking several committees to approve the project to actually build the same. So I love Django and Python for these quick, dirty, and as I stress to everyone, temporary solutions. And believe me, as I am from IT department, when I say temporary, it really gets wiped out at the set date.When managing Django one needs to run commands from the command line quite often. Therefore having command line access is pretty useful.So the … -
Portuguese translation of Django
I've submitted the Portuguese(pt_PT) translation of Django, meanwhile you can download the unofficial version in the downloads section. -
Portuguese translation of Django
I've submitted the Portuguese(pt_PT) translation of Django, meanwhile you can download the unofficial version in the downloads section. -
Test Driving a RESTful Django Contribution
This time around, I will try to take the logical next step with my exploration of REST and Django, and begin creating a Django contribution to implement the ideas I have been working on and to do so in a way that fits with Django's philosophy. -
You vs. the Real World
“Be liberal in what you accept.” dummy_thread » entry.bozo » req.assbackwards » UnicodeDammit » x possibly equals y » -
django REST redux
This is the third post in a series exploring how to create a basic tagging application, and how to do so in the Django framework so that I may better understand Django as well as other technologies and development approaches that are at least somewhat new to me. This time, I want to revisit REST, and hopefully come up with something more usable from the last post. -
Jimbo's Number
It’s been a bad new year for Wikipedia, and it’s probably just going to get worse. While watching such a noble experiment come apart at the seams is depressing, it seems there’s a pretty valuable lesson here: Jimbo’s Number 1,000,000 — the approximate maximum size, in pages, of any one website. -
Ripped by Engadget
What a fun morning. The Daily Python-URL carried a link to an Engadget story featuring a picture of the OLPC from PyCon (Ian Bicking’s badge is visible in the background). Hey, doesn’t that picture look familiar? Yup, that’s right: Engadget ripped me off. That photo’s licensed under a CC BY-NC license, meaning that even if you pretend that Engadget’s use is non-commercial (on an ad-driven site it’s hard to say, really), without attribution they’re essentially guilty of plagiarism. -
Five things I hate about Python
Inspired by Titus (who was in turn inspired by brian d foy), here’s what I hate about Python. I completely agree with Brian that you can’t trust any advocate who doesn’t know enough to find stuff to hate. Given that I spend a lot of time advocating Python, writing down what I hate seems a good exercise. Perhaps I’ll do the same for Django in the future… Anyway, here are the five things I hate about Python, presented Letterman-style: -
toward a RESTful approach to Django applications
If you've read my blog in the past, and you probably haven't, you'll know that I have been trying earnestly to understand how to effectively apply REST, both in Web applications and Web Services. I also believe that you can't claim to know something, and judge it fairly, until you have used it in a significant project. That is what I intend to begin in this post. -
Helping Sort Django's Error Emails
When you run a Django powered website with debugging turned off, whenever a condition happens that would cause a HTTP 500 Error (such as an uncaught exception), the administrators receive an e-mail with a traceback and other relevant details to help debug the issue. These e-mails are really, really handy. If however you run multiple Django sites, all with Debugging turned off, it can become difficult to tell which emails and errors relate to which site. There are two solutions: Write perfect code that never throws errors; or Get Django to prefix the subject of the error e-mails so you can tell what belongs where. Since there are only 24 hours in a day (most of which when I'm either sleeping or at my non-Django day job which pays the bills) I've opted for #2. And doing that is easy. All you need to do is set the EMAIL_SUBJECT_PREFIX variable in settings.py: EMAIL_SUBJECT_PREFIX = '[myproject] ' Easy as pie! -
Helping Sort Django's Error Emails
When you run a Django powered website with debugging turned off, whenever a condition happens that would cause a HTTP 500 Error (such as an uncaught exception), the administrators receive an e-mail with a traceback and other relevant details to help debug the issue. These e-mails are really, really handy … -
PyCon 2007 pictures
I published first day pictures from PyCon 2007. They are raw, unedited, I didn't put descriptions yet. You can recognize Django guys, people from multiple Python web frameworks, and, of course, the BDFL with OLPC. But why wait for pictures to be prepped? Dig in while they are raw and fresh: Yes, this is Steve Holden sporting a Django t-shirt.Update: I added pictures from the 2nd day.Update #2: I added pictures from the 3rd day. Now I can go and put some names and descriptions like I did last year. -
PyCon 2007 pictures
I published first day pictures from PyCon 2007. They are raw, unedited, I didn’t put descriptions yet. You can recognize Django guys, people from multiple Python web frameworks, and, of course, the BDFL with OLPC. But why wait for pictures to be prepped? Dig in while they are raw and fresh: Yes, this is Steve Holden sporting a Django t-shirt. Update: I added pictures from the 2nd day. Update #2: I added pictures from the 3rd day. Now I can go and put some names and descriptions like I did last year. -
Overheard at PyCon
Overheard at PyCon: James Tauber: “Reinventing the wheel is great if you’re trying to learn more about wheels.” Adrian Holovaty: “Having Python produce JavaScript is like using a motorized wheelchair because you’re too lazy to walk.” Titus Brown: “I don’t do test driven development. I do stupidity driven testing… I wait until I do something stupid, and then write tests to avoid doing it again.” Simon Burton (introducing RPython): “Who here would like your Python code to run thirty to forty times faster? -
Building a manageable jumpstart infrastructure using the Solaris Security Toolkit
Luke Kanies has been stirring the hornet's nest lately about why system administration isn't evolving despite the huge growth in the development communities around the applications we manage and use every day. The tools system administrators use get nowhere near the attention, if any, that the applications do. Nor do system administrators often publish the tools they use because they feel they -
I don't care whose is bigger
Lately there’s been a big flare-up of web geek dick waving. This happens from time to time, and every time it just pisses me off to no end. All this arguing over “glue” versus “decoupled”, “full-stack” versus “NIH”… it reminds me of the ridiculous “surge”/“escalation” frenzy flaring up over in D.C. And like politics, these dick waving contents only really succeed because the sane people get too disgusted to participate. All that’s left are the people who are pedantic or insane enough to keep shouting back and forth. -
Quick Django Benching
Today I did an unscientific benchmark to see which was quickest between Apache's mod_python, Lighttpd's FastCGI and Nginx's FastCGI. The ... -
Implementing Tagging in a Django Application
Although I've used many Web based applications that employ tagging, I've yet to create an application of my own with this feature. But now, I have two potential projects on the horizon that could benefit from tagging, and I'm thinking about how to best implement this, both in the database and user interface layers. So, I thought I would explore how to implement tagging in my own applications, from scratch, and write about them on this blog. Therefore, I won't pretend I have all the answers--or even necessarily any good answers--but I will simply be trying to think through how to approach implementing tagging, and I will welcome any constructive feedback on those thoughts. -
The power of Zero
So I've been on this minimalism kick for a couple weeks. Basically applying a "less is more" philospophy to software. This time I'm building a site that has no content of its own, no network configuration of its own, no database, etc. I'm trying to build it completely out of reusable components that themselves use sensible defaults allowing for zero-configuration deployments with the flexibility to allow them to be controlled in cases requiring advanced control. You can see it at homes.knoxzilla.com. In fact you can see it at anything.knoxzilla.com,too. You can use any word you like and add .knoxzilla.com to the end and get the site. Behind the scenes it will use your word to fetch headlines from knoxnews.com. Business listings and photos come from within a 15 mile radius of the 37922 zipcode. I built it all using django and yahoo APIs. The latin text is random and supplied via a nice library I'm building called mockup and loremipsum. The components I'm building allow me do things as simple as {% loremipsum %} and poof -- you get one to six random passages from Cicero's De finibus bonorum et malorum, "On the ends of the good and the evil." … -
Benching Lighttpd vs Nginx (static files)
As it stands, the Django development team recommends mod_python to deploy your Django applications. With that in mind, they recommend ... -
LDAP: a Gentle Introduction
The perception of LDAP (Lightweight Directory Access Protocol) is pretty ambivalent. On the one hand, most software supports it and many people talk about it. On the other hand, there is only one serious open source LDAP server (OpenLDAP), whose qualities are openly discussed. There’s also very little and poor documentation that is mostly targeted towards a special case (e.g. replacing NIS by LDAP). Although being mainly a developer, I’ve been lately heavily exposed to LDAP and would like to give a very gentle introduction into this field, to make the first step easier to others who have to grok this technology. Introduction So what is LDAP? I’m going to spare you the details of its history, which is a fundamental part of each LDAP-covering text I’ve been criticizing. So right ahead: An LDAP server is a database. A database with some special attributes which make it a directory. One of the most fundamental is: It is (or should be) highly optimized for reading. Writing is also needed, but essentially it’s about reading. Therefore it’s perfect for any kind of “white pages” or configurations. Accordingly, it’s mostly known for the usage as a centralized address book or for authenticating. So … -
LDAP – A Gentle Introduction
The perception of LDAP (Lightweight Directory Access Protocol) is pretty ambivalent. On the one hand, most software supports it and many people talk about it. On the other hand, there is only one serious open source LDAP server (OpenLDAP), whose qualities are openly discussed. There’s also very few and poor documentation, which is mostly targeted towards a special case (e.g. replacing NIS by LDAP). Although being mainly a developer, I’ve been lately heavily exposed to LDAP and would like to give a very gentle introduction into this field, to make the first step easier to others who have to grok this technology. Introduction So what is LDAP? I’m going to spare you the details of its history, which is a fundamental part of each LDAP-covering text I’ve been criticizing. So right ahead: A LDAP server is a database. A database with some special attributes which make it a directory. One of the most fundamental is: It is (or should be) highly optimized for reading. Writing is also needed, but essentially it’s about reading. Therefore it’s perfect for any kind of “white pages” or configurations. Accordingly, it’s mostly known for the usage as a centralized address book or for authenticating. So … -
Django Quick Tips #1: Managers
This post is the first in a series of "Quick Tips" for Django, short bits of information not meant to ...