Community
This page, updated every hour, aggregates blog entries by people who are
writing about Django.
Posted on July 4, 2008 at 2:03 PM by Rachel Willmer
This means you have a naming conflict between the core python module calendar and another one which is taking precendence. If you’ve got your own module called calendar, rename it…
Read this post in context »
Posted on July 3, 2008 at 6:24 PM by Patrick Altman
Introduction Managing database changes in a team environment working on a django project can be complicated. I would imagine that there is no one size fits all solution and it would depend on team size and configuration, production database size, etc. What I will outline here is a solution I developed for a small team that [...]
Read this post in context »
Posted on July 3, 2008 at 11:42 AM by Ivan Sagalaev
Итак, вроде бы мы все утрясли, и спринту быть! Чтобы не повторяться о подробностях и порядке “регистрации”, сошлюсь на свой пост в корп-блог.
Read this post in context »
Posted on July 3, 2008 at 1:45 AM by Socialist Software
After reading Ryan Bergs' "The basics of creating a tumblelog with Django" (part1) and (part2), I realized that I wanted a similar tumblog/life stream but I didn't want to have to go through all the work of saving those objects to the database. After all, isn't all that data already stored in their respective systems. And since I am using FriendFeed, which is again duplicating all that data, I don't want to be duplicating it yet another time. That's when the light bulb went off. Using the FriendFeed API and a bit of caching I can pull in my lifestream from FriendFeed using only a custom tag. So I came up with what I call lifefeed Just add "lifefeed" to your installed apps and you can now do this from any template {% load lifefeed %}{% load cache %} {% cache 900 friendfeed %} {% lifefeed "YOUR FRIEND FEED USERNAME" %} {% endcache %} You can use the default friendfeed.html template that comes with lifefeed or use your own. You will most definitely want to use your own CSS to style the items since I am no CSS guru. lifefeed is very simple right now but I would like to ...
Read this post in context »
Posted on July 2, 2008 at 5:31 PM by Piotr Maliński
You can download second Test/Beta release of Diamanda 2008. Compared to Test 1 there is a lot of changes in the code. Prefix, moderators and anonymous support in forums. Marking topics as solved. Main Page (and RSS) feed of new and updated entries (pages and posts by default) OpenID support (you can login by openID, then do a quick registration with no passwords. OpenID user will be auto-logged on his Django account.) Few minor changes in all components In the next 1-2 weeks Test 3 will be released, and after a week a Final release of Diamanda 2008 will be made. Test 3 will contain fixes and few unfinished features (polishing OpenID, content submission, text captcha)
Read this post in context »
Posted on July 2, 2008 at 9:28 AM by Nick Efford
James Bennett’s Practical Django Projects arrived in the post yesterday and it looks pretty good. I’ll post a proper review here later - I’m off sick today and don’t feel up to writing much
Read this post in context »
Posted on July 2, 2008 at 7:45 AM by Ryan Berg
Since posting "The basics of creating a tumblelog with Django," I've received some requests to explain how to get these tumblelog items to actually show up on my homepage.
Read this post in context »
Posted on July 2, 2008 at 3:11 AM by Michael Trier
This Week in Django is a weekly podcast about all things Django. This week we talk about quite a few source commits (kicking-ass), some cool projects from the community, the Tip of the Week, and a question from the IRC.
Read this post in context »
Posted on July 1, 2008 at 11:02 PM by PK Shiu
I wrote a post earlier about PyTextile not working well in Django. James Bennet was nice enough to add some pointers to the issue. (Comments are working now on my Blog). Now that I am using textile more, I want to investigate and document the issue better. Most importantly, the problem ...
Read this post in context »
Posted on July 1, 2008 at 10:48 PM by Dan Fairs
While these are more properly integration tests than unit tests, it can be handy to have Django roll back the database transaction after each test method runs.
Read this post in context »
Posted on July 1, 2008 at 6:59 PM by Ian Holsman
so on the RRD mailing list there is a discussion on how to write a RRD server/accelerator to help speed up RRD. which is a great tool, but when you abuse it and try to capture hundreds of thousands of metrics it kinda uses a bit too much disk I/O. (read swamps the system) So imagine my surprise when I noticed that orbitz has recently open sourced their monitoring framework ERMA: the monitoring API Graphite: a graphing component on top of it Whisper: a fixed size db that stores the info and imagine my surprise when I found out it was written in Django, my favorite framework. and now I find out Theo Schlossnagle has just released reconnoiter (reconnoiter project home) now.. to find a couple of hours in the day to actually get into them.
Read this post in context »
Posted on July 1, 2008 at 6:16 PM by Alberto García Hierro
As some of you may have noticed, I've added my latest notes at byNotes in the sidebar. I wanted to do it in the template side, because I like to keep my views as clean as possible, so I wrote a template tag for fetching a RSS feed and displaying it. Here is the code: from datetime import datetime import time from django.core.cache import cache from django import template import feedparser register = template.Library() @register.filter def todatetime(value): return datetime(*time.localtime(time.mktime(value))[:6]) @register.tag def rssplug(parser, token): try: tag_name, address, template = token.split_contents() except ValueError: raise template.TemplateSyntaxError('%s tag requires 2 arguments' % token.split_contents()[0]) return RssPlugNode(address, template) def resolve(var_or_value, ctx): if var_or_value[0] == '"': return var_or_value[1:-1] return ctx.resolve_variable(var_or_value) class RssPlugNode(template.Node): def __init__(self, address, templ): self.address = address self.templ = templ def rss(self, addr): ckey = 'rssplug_%s' % addr data = cache.get(ckey) if data: return data data = feedparser.parse(addr) cache.set(ckey, data) return data def render(self, context): address = resolve(self.address, context) tmpl = resolve(self.templ, context) t = template.loader.get_template(tmpl) return ''.join([t.render(template.Context({ 'item': item })) for item in self.rss(address).entries]) As you can see, this tag uses a template for rendering every feed item, making it very flexible. You can output any information you want, as long as feedparser supports ...
Read this post in context »
Posted on July 1, 2008 at 6:00 PM by Simon Willison
Django File Uploads (via). Nearly two years in the making, Django’s file upload capacity has received a major (and backwards incompatible) upgrade. Previously, files were uploaded by default in to RAM—now, files larger than 2.5MB are streamed to a temporary and extensive hooks are provided to customise where they end up—streaming to S3, for example.
Read this post in context »
Posted on June 30, 2008 at 2:33 PM by Ivan Sagalaev
У меня есть идея провести 10-12 июля (четверг-суббота) Джанго-спринт в стенах Яндекса в Москве. То есть, собраться заинтересованной людям командой и поработать над Джангой вживую вместе с остальным миром. Описание грядущего спринта уже какое-то время лежит на wiki. Вкратце — будем доделывать newforms-admin. В Яндексе у меня есть предварительная договоренность, что технически мы это организовать сможем. [...]
Read this post in context »
Posted on June 30, 2008 at 5:12 AM by Patrick Altman
Introduction I’ve recently (past week or so) been digging into the newforms-admin branch of django. I am really looking forward to this code line getting merged into trunk as there are tons of great work in this branch. I especially like the separation of the admin code from the models. Well, I’ll get to my [...]
Read this post in context »