Community
This page, updated every hour, aggregates blog entries by people who are
writing about Django.
Posted on July 30, 2010 at 10:48 PM by Stuart Marsh
In Autumn 2010 I will be running several Django courses throughout the UK. The dates and locations will be based on demand, so please signup here to express your interest, and I’ll contact you when the venues have been arranged. There will be 2 different types of courses: Django template design – 1 day – for html/css [...]
Read this post in context »
Posted on July 30, 2010 at 8:44 AM by Lightning Fast Shop
Today we released LFS 0.5.0 beta 4 What's new? Bugfix pages: caching page_view Bugfix cart: display correct stock amount within growl message Bugfix product_inline: display property title within error message Bugfix order_received_mail.html: display the correct selected values of a configurable product Bugfix cart: calculation of maximum delivery date Bugfix redirect: save redirect url for variants Bugfix lfs.page.views: added missing import of Http404 Bugfix: restrict adding to cart if the product is not deliverable. Issue #37 Added french translations (Jacques Seite) Added get_properties method to OrderItem Added optional cached parameter to cart/utils/get_cart_price and cart/utils/get_cart_costs Removed javascript which dynamically sets the height of the slots. Changed properties management: display name instead of title within left portlet Improved lfs.portlet: caching Further Information You can find more information and help on following places: Official page Documentation on PyPI Demo Releases on PyPI Source code on bitbucket.org Google Group lfsproject on Twitter IRC
Read this post in context »
Posted on July 30, 2010 at 3:41 AM by Dan Fairs
I'm pleased to announce that Foundry's first web site has gone live: Swoop Travel. Swoop Travel is a GeoDjango site using PostgreSQL and PostGIS, although very little GIS functionality is in the public-facing site at the moment - it's mainly in the backend. We built this from scratch in about a month (while juggling other projects too!) are are pretty pleased with how it's turned out. This is just the first iteration and we're looking forward to expanding the site. GeoDjango is pretty awesome. As we work on the site and get more experience, I'll post some more about some of the innards: there's quite a lot of interesting stuff in the backend, particularly admin customisations like filtering dropdowns based on landmarks within geographic regions, and so on. I'll also try to talk about the production server configuration, as GeoDjango needs a slightly different WSGI configuration to the standard run-of-the-mill Django site.
Read this post in context »
Posted on July 29, 2010 at 10:48 AM by Simon Willison
Hookbox (via). For most web projects, I believe implementing any real-time comet features on a separate stack from the rest of the application makes sense—keep using Rails, Django or PHP for the bulk of the application logic, and offload any WebSocket or Comet requests to a separate stack built on top of something like Node.js, Twisted, EventMachine or Jetty. Hookbox is the best example of that philosophy I’ve yet seen—it’s a Comet server that makes WebHook requests back to your regular application stack to check if a user has permission to publish or subscribe to a given channel. “The key insight is that all application development with hookbox happens either in JavaScript or in the native language of the web application itself”.
Read this post in context »
Posted on July 28, 2010 at 12:57 PM by Washington Times Open Source
My previous post about the alphabet filter explained the first take at creating the alphabet filter. There were several issues, especially with international character sets, so we have revised the code to fix the issues and made it installable via PyPI.The Default AlphabetThe default alphabet is the list of characters displayed in the admin even if there is no data for that character. As there is data, the letters of the alphabet are enabled. Any characters not in the default alphabet, but that exist in the data, are added dynamically.There is no easy way to determine what the default alphabet should be based on the language or locale. We hit several barriers while automating the default alphabet:The default character encoding (on a Mac and in English, at least) is ISO-8859-1, but Django tries to interpret it as UTF-8.The default character set includes too many characters.Some languages (I'm looking at you, Spanish) treat certain two-letter combinations as letters (e.g. ch and ll).Due to these issues, the default alphabet is now a setting named DEFAULT_ALPHABET . The default setting is the ASCII alphabet and digits. You can set the DEFAULT_ALPHABET to a string or list or tuple.If you only what the ASCII ...
Read this post in context »
Posted on July 28, 2010 at 12:08 AM by Charles Leifer
I'm pleased to announce the release of djangoembed, a django app for consuming and providing rich media. What is OEmbed? OEmbed is a format for allowing a rich representation of a url. If you've used Facebook you've probably seen this feature before -- linking a YouTube video will embed an actual video player in the news feed, automatically. The player is represented by some HTML, plus there may be additional metadata like the author, a link to their channel, the title of the video, or even a thumbnail.
Read this post in context »
Posted on July 28, 2010 at 12:04 AM by Django Dose
Creating an Alphabetical Filter in Django's Admin Partial Deployment with Feature Switches Always Ship Trunk Proposal: Revised form rendering On Form Libraries Query Refactor Update Investing in Yourself - A review of Django 1.1 Testing and Debugging by Karen M. Tracey
Read this post in context »
Posted on July 26, 2010 at 7:20 PM by Antoni Aloy López
Després de barallar-m'hi un bon grapat de dies he aconseguit integrar el TPV de CECA en una de les aplicacions que estic desenvolupant per APSL. Com en el cas de la integració amb el BBVA he de dir que la qualitat de la documentació és inversament proporcional al suport que tens dels tècnics, per a que quedi clar: la documentació és pèssima, plena de inconsistències i exemples que no funcionen. El suport dels tècnics de CECA molt bo. Poc temps per a contestat (llevat de si demanes en divendres, clar) i respostes clares i concises. Un deu! Amb la gent del BBVA el mateix, se coneix que els ha tocat bregar amb la documentació.ora No acab d'entendre què costa mantenir la documentació actualitzada. Si ja no es fa servir un programa per a generar la firma, llavors es refà la documentació i se'n lleva la referència. Si s'incorpora un tag obligatori nou que s'ha d'enviar, llavors s'actualitzen els exemples. Per si a algú més li serveix faig cinc cèntims del que m'he trobat i del que funciona a l'hora d'escriure aquest apunt. Generació de la firma La firma és diferent per l'enviament i per la resposta. En ambdós casos es ...
Read this post in context »
Posted on July 25, 2010 at 9:15 PM by Daniel Roseman
Here are the slides from my talk at Europython 2010, Advanced Django ORM Techniques. Advanced Django ORM techniques The talk is mainly a summary of the query optimisation tricks I've previously talked about on this blog, although I did begin by explaining briefly how models, fields and relationships work behind the scenes - I'll write some of that up here at some point. I'll also be posting a longer review of Europython here, hopefully in the next few days.
Read this post in context »
Posted on July 25, 2010 at 4:03 AM by Gustavo Picón
django-treebeard 1.61 has been released (CHANGES). It’s in pypi so you can install it with pip or easy_install. You can get the code in the Mercurial repo. There is also a well maintained Git mirror. Please report bugs in the … Continue reading →
Read this post in context »
Posted on July 23, 2010 at 2:59 PM by Marcin Mierzejewski
AlertGrid is an interesting online instant notifications service (written in Python/Django) that helps reacting on the custom events (server down, script error, machine stopped) by sending SMS/phone/email notification.
Read this post in context »
Posted on July 22, 2010 at 4:30 AM by 2degrees
I'm very pleased to announce that twod.wsgi 1.0 has been released, after several months of production use and preview releases! No bug has been found in the release candidate and therefore the final release has the same code as the candidate one.twod.wsgi allows Django developers to take advantage of the wealth of existing WSGI software, as the other popular Python frameworks do. It won’t break you existing Django applications because it’s 100% compatible with Django and you can start using the functionality offered by this library progressively.Get it while it's hot!
Read this post in context »
Posted on July 20, 2010 at 7:21 PM by Simon Willison
Easier custom Model Manager Chaining. A neat solution to the problem of wanting to write a custom QuerySet method (.published() for example) which is also available on that model’s objects manager, without having to writing much boilerplate.
Read this post in context »
Posted on July 20, 2010 at 3:57 PM by Mitch Fournier
A few Django 1.2 tutorials by andreai.avk covering topics like Django admin customization, comment notification and moderation, thumbnail creation, searching and filtering, and automated testing. Current demos include a To-Do App, a Simple Blog, a Photo Organizing and Sharing App and a Simple Forum.
Read this post in context »
Posted on July 19, 2010 at 9:59 PM by Brandon Konkle
I wasn't able to find instructions in the Django docs for setting up a template_postgis database with postgis-1.5 and Postgres 8.4 on Ubuntu Lucid (10.04). This is what worked for me: #!/usr/bin/env bash POSTGIS_SQL_PATH=`pg_config --sharedir`/contrib createdb -E UTF8 template_postgis # Create the template spatial database. createlang -d template_postgis plpgsql # Adding PLPGSQL language support. psql -d postgres -c "UPDATE pg_database SET datistemplate='true' WHERE datname='template_postgis';" psql -d template_postgis -f $POSTGIS_SQL_PATH/postgis.sql # Loading the PostGIS SQL routines psql -d template_postgis -f $POSTGIS_SQL_PATH/spatial_ref_sys.sql psql -d template_postgis -c "GRANT ALL ON geometry_columns TO PUBLIC;" # Enabling users to alter spatial tables. psql -d template_postgis -c "GRANT ALL ON spatial_ref_sys TO PUBLIC;"
Read this post in context »