Community
This page, updated every hour, aggregates blog entries by people who are
writing about Django.
Posted on July 3, 2009 at 12:18 PM by Deryck Hodge
Here's a quick tip for Django template hackers. It's a known fact of Django templates that the syntax is purposefully limited. I've been living with the need for an if-substring-in-string construction. Of course, I could write a custom template tag, but work is quite busy. So on a whim ... Read complete post
Read this post in context »
Posted on July 3, 2009 at 5:39 AM by Django en Español
Hace un par de días se ha liberado el código de EveryBlock bajo licencia GPL. EveryBlock ofrece noticias e información local sobre barrios de distintas ciudades de Estados Unidos. Se trata de uno de los sitios web más interesantes que utilizan Django. El código fuente se puede encontrar dividido en distintos paquetes en el sitio oficial. El código incluye paquetes que trabajan con información geográfica, el sistema de publicación completo de EveryBlock y hasta un paquete de blog y otro de wiki.
Read this post in context »
Posted on July 2, 2009 at 8:56 PM by David Cramer
One of the common things we do across projects is paginate querysets and lists. Django happens to provide a base Paginator for us, but it’s usefulness is limited. It requires you to do the same repetitive tasks over and over. We’re one of those groups of people who believe that not every URL need’s to [...]
Read this post in context »
Posted on July 2, 2009 at 12:25 PM by Marcin Mierzejewski
Packt Publishing from UK informed me that they published an interesting book "Django 1.0 Template Development", written by Scott Newman. I have not read yet, but it has many positive reviews (e.g. Lowkster and contenthere).
Read this post in context »
Posted on July 2, 2009 at 1:24 AM by Josh VanderLinden
Today marks the official release of Mercurial 1.3, an awesome distributed version control system. This release comes with several nifty features, including the following, straight from the What's New wiki page:Major Changesexperimental support for sub-repositoriesPython 2.3 is no longer supported; now requires Python 2.4-2.6Commandsmerge: add -P/--preview optionupdate: don't unlink added files when -C/--clean is specifiedupdate: added -c/--check option to abort on local changesupdate: allow merges...
Read this post in context »
Posted on July 1, 2009 at 9:01 PM by Simon Willison
EveryBlock source code released. EveryBlock’s Knight Foundation grant required them to release the source code after two years, under the GPL. Lots of neat Django / PostgreSQL / GIS tricks to be found within.
Read this post in context »
Posted on July 1, 2009 at 7:41 AM by Sean Creeley
A couple weeks ago David Ziegler posted an article on how to extract excerpts from articles using Python and BeautifulSoup. It works well, but I would like to suggest some improvements by using lxml instead. It's a fairly simple problem. Get the title and the description out of the head, and if there is no description, try to pull some content out of the body. First two easy and the last one sucks, but Python has tools that make our life easier. BeautifulSoup is the go to for web scraping in Python, but it suffers when it comes to performance. lxml is definitely faster and in this case about 3 times so. Read Full Entry
Read this post in context »
Posted on July 1, 2009 at 4:00 AM by Ed Menendez
The site very simply takes your avatar and turns it into any color you select. The online community is starting to do this to support and protest many things. This is the 2.0 way of making your page background black for a cause. We created this site in 90 minutes using Django on June 19th.
Read this post in context »
Posted on June 30, 2009 at 10:14 PM by Joaquim Rocha
Rancho is available in English, Portuguese and Spanish (okay, I know some strings are not *yet* updated but they’ll be). As we think it’ll benefit more people who don’t speak these languages, we’re asking for translators who want to contribute to this Open Source project. We have a nice Rosetta app installed where the translators will be [...]
Read this post in context »
Posted on June 30, 2009 at 5:56 AM by Eric Holscher
Setuptools comes with a way to run the tests on your application. This allows the user of your software to download it, and run python setup.py test and check to see if the tests in your application pass. This is really useful for distribution, because the user doesn't need to know or care how to run your tests (nose, django, unittest, py.test, or whatever else), and can simply see if they pass. To do this, you simply define a test_suite variable in the setup() function of your setup.py. This argument is a callable that should return a test class. However, since Django has it's own test runner, we have to point this at a simple test runner that we construct, and allow that to run the tests. This is because we must set a couple of environmental things, like the settings module and PYTHONPATH. I did this with my test_utils project, you can see the commit here, but basically I simply added this line to my setup.py: test_suite = "test_project.runtests.runtests", Then put this in the file test_project/runtests: #This file mainly exists to allow python setup.py test to work. import os, sys os.environ['DJANGO_SETTINGS_MODULE'] = 'test_project.settings' test_dir = os.path.dirname(__file__) sys.path.insert(0, test_dir) from ...
Read this post in context »
Posted on June 29, 2009 at 12:49 AM by Andrew Godwin
It's about time I posted an update on what's going on with South development, so here it is.Firstly, there hasn't been much work done in the last few weeks, due to exams and there being a Ball to help run. Now that's over, development will crack down. 0.6 is going to focus on the following new features:Less parsing, more introspection. The default way of getting fields' definitions will be to introspect them; the implementation of this is pretty much complete already, and can be found in the 'noparsing' Mercurial branch. Custom fields (which cannot be introspected withour prior knowledge) have two options; provide a south_field_triple method to tell us their definition (preferred way), or as a fallback the parser will be used. This feature solves many issues, including dynamic models, and also doesn't lose the ability to work with most custom fields right from the start.Reverse dependencies. Just brought up by one of the Ella developers, this is a good idea that should have been in South a while back. You'll be able to specify 'this other migration depends on us' as well as 'we depend on that other migration' - this helps pluggable apps around a common core.Fixture migration. ...
Read this post in context »
Posted on June 27, 2009 at 1:56 PM by Joaquim Rocha
I’m very happy to announce you that the new version of Rancho is out! This version has many new things starting by its name/number. We decided to start using n Ubuntu-like versioning and so, instead of just incrementing numbers, we’ll use the year.month notation. So here you have the 9.06! But what’s new in this new version!? One [...]
Read this post in context »
Posted on June 26, 2009 at 8:44 AM by Lightning Fast Shop
This are the LFS news for week 26. Portlets The portlets story goes on. At the moment there are almost all portlets ported to the portlet engine: cart, categories, pages, recent product, related products, text and topseller. Some of them need some love, though. Additionally for all portlets there are also inclusion tags to render the portlet within templates. So you don't have to use them if you don't need this kind of flexibility. You can also easily register your own portlets and slots (by default there is a left and a right slot). Design The design has been refactored. We are using a tableless base template with the help of blueprint now. Also some simplification has been taken place (this is an ongoing process at the moment) Shops We are working on the migration of demmelhuber.net to LFS. demmlhuber.net is a german top 500 shop with more than 30.000 unique visitors per month. This surely will give us some new use cases and experiences for the future. Next week I will work with some designers on a new shop. I expect some insights from their perspective which will flow positively into the template structure. Issues I found out that SWFUpload ...
Read this post in context »
Posted on June 26, 2009 at 3:04 AM by James Bennett
About two months ago, I quietly wrote and released a little Django application which generates cross-domain policy files for Flash (if you’ve never encountered this aspect of Flash, here’s an introductory article on how it works). I’ve done a bit of hacking on it in my spare time, and I’m pretty happy with it as an example of a simple, tightly-focused application; sometime soon I hope to write a bit more ... Read full entry and comments
Read this post in context »
Posted on June 25, 2009 at 2:20 PM by Piotr Maliński
I've decided to release a snapshot of my Django powered web based cRPG game, code name "Ice Isle" ("Wyspa Mrozu"). The package contains fully working Django application (uses also PIL, simplejson, and jQuery library), however the game is far from finished, polished, documented and so on. This release is licensed under Creative Commons license BY NC SA and further releases on more liberal and/or GPL, LGPL license depend on the feedback ;) The snapshot contains Legendora Icons, some graphics from Baldurs Gate and Icewind Dale, and graphics from dreamweavedworlds.com - which have their own licenses (used temporary at this stage of development) Download Ice Isle ZIP - extract and check the readme
Read this post in context »