Officially Lucky

Django, Python, Programming, Web 2.0, The Social Graph, Fashion, Chicago. A whole mixed up bag of stuff.

by Clint Ecker

Posts about django

django-friendly: New template tags for FriendFeed data

Just a friendly (ho!) update on some of the things I've added to my FriendFeed Django application, django-friendly recently. I needed a way to pull out all the media from an entry. As I mentioned in my original post, getting at that stuff was a nasty mess of object attributes in your templates, so I set out to fix that. To that end I've created a few media-related tags. The first is get_friendfeed_media_list get_friendfeed_media_list This is very straightforward as it works just like comments and likes. You might use it in this manner (see second line): {% get_friendfeed_media_list for [friendfeed_id] ...

Site converted to django-friendly: FriendFeed integration

I posted about it on Twitter this afternoon, but I finally succumbed to the FriendFeed trend and I'm going to let them do the hard work of aggregating my life stream and normalizing it. Honestly, I don't need to fight the never-ending battle of scraping and parsing a billion feeds when a company flush with cash and smart people can do it for me, right? :) What's great is that they provide a fabulous API and so I took some time yesterday to build a Django application I call django-friendly that you can pop into your site to integrate everything ...

DjangoCon: GooglePlex, September 6 & 7 (more details)

Rob LoftHouse just announced on his Twitter that DjangoCon 2008 will be taking place at the GooglePlex (that's Google's Mountain View, California headquarters) on September 6th and 7th! Woo! Rob also indicates that a Djangoproject.com posting will be up soon. The official post is live: I am pleased to announce that DjangoCon will be held on the 6th and 7th of September, 2008 at the Google headquarters in Mountain View. This will tie in with the 1.0 release of Django, and so we'll be also having a 1.0 release party on Saturday September 6th. All the details including a schedule ...

Posted on: 2008 July 13

Filed under: Django

Tagged as: , , , ,

Comments (View)

Ars Technica Review: Practical Django Projects

Just noticed my review has gone up on Ars. Here's a short excerpt: The final, and best, section of this book covers a few topics that have personally revolutionized my understanding and how I think about developing my Django applications. James goes to great lengths to explain the philosophy behind Django’s concept of reusable applications. The idea here is that one should strive to develop small, tightly-focused, and loosely coupled applications (or modules) that can be plugged into any application to add instant functionality. In fact, a large portion of what makes Django such an attractive framework—it's auto-generated admin interface, ...

Review complete: Practical Django Projects

I wrapped up my review of Practical Django Projects for Ars Technica tonight. Its good to finally get that out the door. Its still going through editing, copy writing, and all that good stuff, but I hope it might go up tomorrow. I'll be sure to link it here.

Allow template tags in Flatpages (and chunks)

One of the big downfalls of storing bits of templates in your database is that you're limited to HTML/CSS/JavaScript. Individuals editing flatpages can't use template filters or other bits of Django's awesome templating language. Usually this doesn't make much sense, but for one CMS use-case (linking to other pages by identifier and not hard-coding their URL), it could make a big different. In that vein, Kyle Fox posted a comment on my post about django-chunks and mentioned that he had developed a template tag that allows individuals to insert Django templating language into Flatpages (and chunks!) This tag will let ...

djangocon: San Francisco, September 2008

Wow! I'm so excited about the news of an upcoming djangocon. Not only is it confirmed that it will eventually happen, it will be taking place in San Francisco, in September 2008! The date is engineered to coincide with Django 1.0's scheduled release.

Posted on: 2008 July 07

Filed under: Django

Tagged as: , , , ,

Comments (View)

Three awesome Django tips

By far, the one tip that's revolutionized my Django projects is this post by Rob Hudson, Django and Relativity: My default Django settings file has changed over time to now include settings that do not depend on the location of the project on the filesystem. This is great in a team environment where more than one person is working on the same project, or when deploying your project to a web server that likely has different paths to the project root directory. Nathan Ostgard wrote a post on how to use Django with Gmail and I come back to it ...

Posted on: 2008 July 07

Filed under: Django

Tagged as: , , , , , ,

Comments (View)

Super simple Google Analytics for your Django projects

I just whipped together another really simple Django application I call django-google-analytics that simplifies the process of inserting Google Analytics tags into your Django projects. Why did I create this? I manage a lot of Django projects that present slightly-different forms to users depending on the site/domain they're visiting. There's also a bunch of custom submission code that differs from form to form, but that's neither here nor there. I need different Google Analytics codes depending on the sites and after sticking these tags into every single template, I thought it would be cool to be able to manage these ...

Posted on: 2008 July 07

Filed under: Django, Programming

Tagged as: , ,

Comments (View)

RestrictMiddleware

Here's another one that I've yanked out of a project. I call it RestrictMiddlware and it is a real simple, and really easily bypassed "security" mechanism. Like most security, it's just security theater, but some clients make it so hard to enable true security that you've got to resort to this type of stuff. As a warning, I'd really emphasize that you shouldn't ever use this type of access restriction on any site that contains truly secure, private, or sensitive material. Use strong user logins or better. This is the RestrictMiddleware and you just pop it into your Django settings.py ...

Posted on: 2008 July 06

Filed under: Django, Programming

Tagged as: , , ,

Comments (View)

Older

by Clint Ecker

tech journalist, web developer, cyclist, and chicagophile.

RSS Feeds

Search

A Django site.

©2008 Clint Ecker <me@clintecker.com>