Django community: RSS
This page, updated regularly, aggregates Community blog posts from the Django community.
-
Mount an SSH Connection in OS X
Google’s Amit Singh released MacFUSE, a Mac-centric interpretation of FUSE. From the project website: MacFUSE implements a mechanism that makes ... -
Fried Chicken
I’ve been trying to make outstanding fried chicken for about four years, and I think I’ve finally got it. I don’t mean to toot my own horn, but I just made the best damn fried chicken I’ve ever had, and it wasn’t even all that hard. If you like the crispy stuff and aren’t afraid of phrases like “heat a quart of oil to 375°”, read on… Hardware You’ll need some gadgets to pull this off: -
Django on Accelerators
We’ve setup two clients plus ourselves on TextDrive Accelerators. For those not in the know, TextDrive Accelerators are Sun Solaris ... -
All I want to do is convert my schema!
I’m working on a django in which I want to store GPS track information in GPX format. The bests way to store that in django is with an XMLField. An XMLField is basically just a TextField with validation via a RELAX NG Compact schema. There is a schema for GPX. Great! The schema is an XSD though, but that’s okay, it’s a schema for XML so it should be pretty easy to just convert that to RELAX NG compact, right? Wrong. I pulled out my handy dandy schema swiss army knife, Trang but was shocked to find out that while it can handle Relax NG (both verbose and compact), DTD, and an XML file as input and even XSD as an output, there was just no way that I was going to be able to coax it to read an XSD. Trang is one of those things (much like Jing that I rely on pretty heavily that hasn’t been updated in years. That scares me a bit, but I keep on using ‘em. With Trang out of the picture, I struck out with various google searches (which doesn’t happen very often). Jacob was kind enough to point me at the … -
Blog Spam Protection
I currently manually review and delete comment spam every few days. It doesn't take long, it's just frustrating. When you regularly repeat an action over a long period of time, you begin to notice patterns of action. What I've noticed is that most comment spam is being posted to older blog posts - most likely due to their higher number of in-links, and I'm guessing higher google page rank. To this end, what I've done is add a method to my blog Post model, which checks the post date and, if it's within the defined timeframe, will return 'True'. My Post detail template now checks this method and only displays the form when appropriate. The first file to change is your blog applications models.py. At the top of the file add this import statement to bring in the 'datetime' module and required tools: from datetime import datetime, timedelta Next, in the same file, add the following method to your 'Post' class (just after the 'body' field is fine): def allow_comments(self): return (self.date + timedelta(21)) > datetime.now() Lastly, open up your blog detail template and replace the existing call to {% free_comment_form ... %} with: {% if object.allow_comments %} {% free_comment_form … -
Blog Spam Protection
I currently manually review and delete comment spam every few days. It doesn't take long, it's just frustrating. When you regularly repeat an action over a long period of time, you begin to notice patterns of action. What I've noticed is that most comment spam is being posted to older … -
Small Django tips from one newbie to another
I am a Django newbie: I have gotten my feet wet exploring Django and have started building my first serious application with it. I am having more fun with Django than I have had with any other software tool in a long time, and I would like to share a few things I have learned along the way so far, that might help other newbies. If you are a more experienced Django-neer reading this and notice areas for improvement or outright mistakes, I would be very grateful for the feedback. -
Hacking Django, how Bazaar
A short while ago, I went on a mission to find a better way to hack Django. I needed a way to keep my patches organized and updated. So, in this article I discuss my experiences with a tool I found to help me achieve these goals… Enter Bazaar, one of the several distributed version [...] -
New Cuker Design site, powered by Django
I wanted to mention that we’ve completed (as of about a month ago) the new Cuker Design Website using Django. ... -
Pardon the Dust
Sorry about the short outage there. I finally consolidated the various co-location, shared hosting, and virtual private hosting services that I was consuming every month in to one VPS account. I still have some legacy URLs to do some rewrite magic for, but the archives back to 2002 is here. Because my new box is very Django-oriented, I am now running WordPress via PHP5 (FastCGI) and MySQL5 on lighttpd behind perlbal. One of the things I really enjoyed about the move from WordPress on Apache with a really gnarly .htaccess file for URL rewriting to lighttpd was the simplicity of it all. Getting WordPress to “just work” for me on lighttpd was as simple as adding a 404 handler for the site: server.error-handler-404 = "/index.php?error=404" Everything should be smoothing out shortly and of course the eventual goal is to move this blog over to Django trunk. I did just that a few months ago but I need to revisit the code, find the importer, and give it a lot of layout love. -
Django on dreamhost problem
***Update*** Looking around I found this post that puts forward what is a much better solution. It suggests renaming django.fcgi to dispatch.fcgi because dreamhost has a policy of not killing things called dispatch.fcgi. I’ve updated the dreamhost wiki page on django to mention this. What’s below is my old solution: Primary problem My mum’s site [...] -
Skype3 i polski czat dla Railsów, Django i Pylonsa
Nowy Skype 3 wprowadza małą rewolucję w stos. do poprzedniej wersji. Można nie tylko rozmawiać, ale pograć w szachy, kółko i krzyżyk i inne gry (są b. ładnie zrobione we Flashu 9). Można nagrywać rozmowy na dysk. Można tworzyć publiczne czaty. I właśnie w tej sprawie piszę ten tekst bo stworzyłem polski czat dla miłośników frameworków Ruby on Rails, Django i Pylons. Wygodniej jest czasem skonsultować coś w czasie rzeczywistym niż na grupie czy forum dyskusyjnym. -
URGENT: Upgrade Django if Deployed via FastCGI
I found a serious vulnerability within the Django implementation of Flup and reported it to the security team. As of ... -
Long time, no post
Wow, it has been half a year since this site was up. It used to be that I hosted this site ( and all of the other crazy sites I have ) out of a spare bedroom. That server room was host to anywhere between 4 and 12 computers at any given time. I generated a lot of noise, and a lot of heat. When we decided to move, I shut everything down and put the servers in storage so that the room could be made more presentable. Wow, our energy bills dropped by more than $80 per month at that point. And the room became much more inhabitable. Now that we've moved into our new home, I'm reticent to put it all back in place, so instead of that, I'm experimenting with Xen. Xen is an open source virtualization project similar to vmware of parallels, but only for linux. At this point I've got a virtual machine, which you are using right now that is running in boulder. Post to Del.icio.us -
Requiring a Login for an Entire Django Powered Site Redux
In an earlier post I had some Django middleware that requires users to be authenticated to use the app. If ... -
The Pareto principle (Or, why the 80/20 rule always bites us in the ass)
This rant bought to you by yet another unfinished project. As hard as you work to avoid it, there seems to be no way to avoid the good old 80/20 rule. It seems that no matter what you're working on, 80% of the work takes 20% of the time, and the remaining 20% of the work takes (at least) 80% of the remaining time on the project. The '80/20 rule', as it's commonly known, is an implentation of the Pareto Principle, originally conceived by observing that 80% of income in italy was received by 20% of the Italian population. (Source: Wikipedia). In software development this is very visible. It doesn't take a developer long to get a working mock-up online, complete with a basic interface and the most important functionality. But one can almost guarantee that this mock-up will not include some small yet important features that a public, commercial product requires if it's to be used by the masses. I'm a big fan of Django. But I'm also annoyed at the way it lets us emphasise Pareto's principles. Rapid Web Application Development is the current 'in thing' - using Django or Ruby on Rails, one can get a basic … -
The Pareto principle (Or, why the 80/20 rule always bites us in the ass)
This rant bought to you by yet another unfinished project. As hard as you work to avoid it, there seems to be no way to avoid the good old 80/20 rule. It seems that no matter what you're working on, 80% of the work takes 20% of the time … -
Running Django SVN? Update your Flup!
Every couple of days or so I update my Django src directory to the svn trunk. I find it to ... -
How the news breaks
I swear, sometimes this programming thing is really just the digital equivalent of baling twine and duct tape. If you happen to be watching 6News in Lawrence last night, you’d have seen the election results crawling across the bottom of the screen: Pretty much par for the course in terms of local TV coverage… but do you have any idea how that information gets there? Let me break it down: -
Requiring a Login for an Entire Django Powered Site
UPDATE: Read a newer post about this here. For work I’m building a system for us to keep track of ... -
How to Use Markup in Django
Let me first say that I love Django. It’s been a hell of a development environment and the documentation is ... -
Geonames are in
We've managed to migrate to the data from www.geonames.org. With a lot of places and a, let's say, less-than-optimal data model for geo data, it took some effort to import the data and migrate the current content. Thanks to ground work of Robin of Sonologic, and some more ploughing through data by Tim here, we now have a completely new set of place names. -
Geonames are in
We've managed to migrate to the data from www.geonames.org. With a lot of places and a, let's say, less-than-optimal data model for geo data, it took some effort to import the data and migrate the current content. Thanks to ground work of Robin of Sonologic, and some more ploughing through data by Tim here, we now have a completely new set of place names. -
Django signals
In this article we introduce the concept of signalling, discuss Django signals, provide examples of listening for Django's built-in signals and sending custom signals. -
A guide to django on dreamhost (and django deployment in general) and my experience so far
Dreamhost is one of the few large non-VPS shared hosting companies that is currently Django compatible. I’ve found that It hasn’t been too hard to set up either. This little guide assumes you’ve read this guide and is mainly just caveats and tips followed by a bit of personal experience on reliability. MySQL This is [...]