Django community: RSS
This page, updated regularly, aggregates Community blog posts from the Django community.
-
A Django Development Environment with zc.buildout
Setting up environments is a pain. Whether it's Django, Zope, ASP.NET, whatever - a typical web stack has often dozens of components with dependencies on each other and underlying libraries. How do you manage this? How do you make sure that the software you're running on your development environment is configured the same way, and is the same version that gets into your production environment? How do you make sure that the third-party Python library you've just started using is correctly deployed? One answer is zc.buildout. Buildout is a tool for reliably creating reproducible software builds. It was originally developed by Zope Corporation, and is often used in Zope builds; however, there's no dependency on Zope. You can use it to build pretty much anything. And I'm going to show you how to get a Django build up and running using it. I shall use PostgreSQL as the database in my examples, but there's nothing stopping you using MySQL or any other Django-supported database, if you wish. You'll also need the standard development tools (gcc, etc.) available since we're going to be getting buildout to compile some binary eggs for us. The Basics: Python and PostgreSQL The only thing you … -
PDF generation with PISA in Django
Today I had to come up with pdf generation for a project and was happy to find Pisa makes this cake-work. Pisa depends on Reportlab but you don't have to dig into Reportlab to get your pdf generated. -
Release: django-treebeard
django-treebeard is a library that implements efficient tree implementations for the Django Web Framework 1.0+. It includes 3 different tree implementations: Adjacency List, Materialized Path and Nested Sets. Each one has it’s own strength and weaknesses (see Benchmarks) but share the same API, so it’s easy to switch between implementations. django-treebeard uses Django Model Inheritance [...] -
How to explore dynamically your django code
I have been using the methods presented by Simon Willison on this post.For quite sometimes now and I always felt that it would be nice to have the tab completion when using the debugger inside my views or elsewhere in my django code.Here it is the magical line:import ipdb; ipdb.set_trace()Note : That "pdb" as been replace by "ipdb" which is the IPython debugger.You then get all the nice stuff from IPython (tab completion, nice tracebacks) right in pdb. In order to install it you can for example do : easy_python ipdb -
Django admin inline forms
Django admin inline forms -
Exploring Pinax Series
Pinax is an integrated collection of selected Django reusable applications. It can be used as a head start for website projects and also to experiment patterns of Django applications. As I learn how to leverage Pinax to build Web applications, I’m writing about my experiences. I plan to update this article and to use it [...] -
Exploring Pinax – Part 7
I’m proceeding in my quest to learn how to create a Django application using Pinax as a base. I’m writing a sample paste bin application called Oxybeles. It’s main feature will be the ability to send pasted items to another user and to receive new pasted items as responses. I want a user to be [...] -
Sandboxing Django Reusable Apps
A couple days ago Brian Rosner posted a great article on Reusable App Conventions. If you haven't read it yet it's worth a read or two. I have a few in the works and want to quickly discuss sandboxing your development process for reusables using Pinax. -
Emacs Terminal Emulator
In Distraction Free Progamming with Emacs I mentioned the ability to have a shell or terminal running in a window within your workspace. This is extremely handy to run tests in Python Shell or to see when something is going wrong with your code. The emacs wiki is a great source of information but I'll give you a quick rundown on how to get up and running quickly. -
Eclipse PDT 2.0 Stable Release
Finally it is there! The first stable release of the PDT plugin for Eclipse Ganymede (at least the first I see). Following the project plan the M1 release should have been there yesterday - maybe they meant the stable release. I'm hoping my anticipation will not be tainted as was unable to check it out for myself till now. -
Eclipse PDT 2.0 Stable Release
Finally it is there! The first stable release of the PDT plugin for Eclipse Ganymede (at least the first I see). Following the project plan the M1 release should have been there yesterday - maybe they meant the stable release. I'm hoping my anticipation will not be tainted as was unable to check it out for myself till now. -
Eclipse PDT 2.0 Stable Release
Finally it is there! The first stable release of the PDT plugin for Eclipse Ganymede (at least the first I see). Following the project plan the M1 release should have been there yesterday - maybe they meant the stable release. I'm hoping my anticipation will not be tainted as was unable to check it out for myself till now. -
Shifting Bits: Twitter Integration Added
I just added integration to Twitter so that when making a blog post active in Shifting Bits a post is sent to the Twitter account configured in the settings.py file. As part of the post to Twitter, the url for the post is passed through urlzen to shorten the link so everything is nice an tidy. This post will serve as it's first public test (so hopefully it works!). -
Shifting Bits: Twitter Integration Added
I just added integration to Twitter so that when making a blog post active in Shifting Bits a post is sent to the Twitter account configured in the settings.py file. As part of the post to Twitter, the url for the post is passed through urlzen to shorten the link so everything is nice an tidy. This post will serve as it's first public test (so hopefully it works!). -
Why you should try Django : Agility
Disclaimer: I'm not naive enough to think that Django is for everybody and that's why the title reads 'try' and not 'use'. However, I do think after giving Django a chance and breaking out of your cycle you will be impressed. I also realize due to where I'm aggregated I'm preaching too many of the converted. However, perhaps if nothing else this will help your arguments when persuading others or your work to give Django a go. I'm also going to assume you know nothing about Django or even much about programming. Finally, I write this as I am getting more and more frustrated with having to work in other environments. Clients often don't know what they want, I think this is a sore spot shared by many web developers. Companies often know they 'want' and 'need' a website but usually they don't know why, what they need or what they can even do. This can make the development process a bit rocky. I've found that often clients start to get a better idea of what they want/need as the development progresses. This is exactly why dynamic, agile development is so beneficial. So let's set the scenes with a very … -
Symfony Latin - UTF-8 problem
I'm currently getting into the Symfony framework and I can definitly say that I like it. But as my site was finished after only some hours I had a problem concerning the display of special characters like the umlauts (ä, ö, ü) aso. I don't use a database created by SF/Propel but use an existing one with latin1_* encoding (the default TYPO3 db encoding). Unfortunatly all umlauts where displayed as questionmark so I started finding an solution. The characters are fuzzy because they were not correctly returned by propel. I tried all configuration directives I found (setting the encoding of the connection to utf-8 aso) but nothing worked. Finally I found a snippet that fixes the problem for me: Setting UTF-8 for Propel with MySQL tables and now everything is just fine! -
Symfony Latin - UTF-8 problem
I'm currently getting into the Symfony framework and I can definitly say that I like it. But as my site was finished after only some hours I had a problem concerning the display of special characters like the umlauts (ä, ö, ü) aso. I don't use a database created by SF/Propel but use an existing one with latin1_* encoding (the default TYPO3 db encoding). Unfortunatly all umlauts where displayed as questionmark so I started finding an solution. The characters are fuzzy because they were not correctly returned by propel. I tried all configuration directives I found (setting the encoding of the connection to utf-8 aso) but nothing worked. Finally I found a snippet that fixes the problem for me: Setting UTF-8 for Propel with MySQL tables and now everything is just fine! -
Symfony Latin - UTF-8 problem
I'm currently getting into the Symfony framework and I can definitly say that I like it. But as my site was finished after only some hours I had a problem concerning the display of special characters like the umlauts (ä, ö, ü) aso. I don't use a database created by SF/Propel but use an existing one with latin1_* encoding (the default TYPO3 db encoding). Unfortunatly all umlauts where displayed as questionmark so I started finding an solution. The characters are fuzzy because they were not correctly returned by propel. I tried all configuration directives I found (setting the encoding of the connection to utf-8 aso) but nothing worked. Finally I found a snippet that fixes the problem for me: Setting UTF-8 for Propel with MySQL tables and now everything is just fine! -
Lightbox Clones Matrix
As I'm currently validating different lightbox clones I'll advert to the brilliant The Lightbox Clones Matrix of PlanetOzh. It lists nearly all lightbox clones and gives the possibility to filter by features and used javascript framework. File size is displayed, too. The Lightbox Clones Matrix -
Lightbox Clones Matrix
As I'm currently validating different lightbox clones I'll advert to the brilliant The Lightbox Clones Matrix of PlanetOzh. It lists nearly all lightbox clones and gives the possibility to filter by features and used javascript framework. File size is displayed, too. The Lightbox Clones Matrix -
Lightbox Clones Matrix
As I'm currently validating different lightbox clones I'll advert to the brilliant The Lightbox Clones Matrix of PlanetOzh. It lists nearly all lightbox clones and gives the possibility to filter by features and used javascript framework. File size is displayed, too. The Lightbox Clones Matrix -
Blango now hosted at byNotes repository
Blango is now hosted at the byNotes source code repository and I'll start doing proper releases soon. However, I feel like Blango has all I need and I don't see any new features I could add (you can check the current features at the project page. How would you enhance it? Leave a comment with your cool idea! -
sPaste|source – a secure, open source, pastebin
A few months ago, I found myself with a frequent itch at work. Often I needed to send sensitive information such as access credentials to co-workers and clients. Obviously email isn’t an acceptable way to send this information, but anything much more complex than email overly frustrates who ever I am sending information to. My [...] -
CivicSquared
This is a call to action, folks. Please go vote for CivicSquared to get funding to bring such a great idea to reality. The Knight News Challenge is a contest where $5 million worth of projects will be funded. The projects are those with a focus "on neighborhood and community-focused projects, services, and programs". The CivicSquared project goal is essentially opening up government: "The same prudence, which, in private life, would forbid our paying our money for unexplained projects, forbids it in the disposition of public moneys." -- Thomas Jefferson CivicSquared is social software that helps communities obtain and discuss information about local legislation, tax allocation, and elected officials' voting records. It will be released as an open source Django application. Most citizens do not know how their local taxes are spent. While it is true that citizens can voice opinions at the public meetings where these decisions are made, there are enormous barriers to effective participation. Some of these barriers include advance access to agendas, to information about issues, and to past deliberations on those issues. Even when agendas are posted in advance, there are often questions, and the impact of legislation on a community is often unclear without … -
Exploring Pinax – Part 6
I think this series of articles is starting to pay off… A few people are using my first article to learn how to set up a new Pinax website. And also, I am getting feedback on how to do things better. On the pinax-users list, Bob Haugen pointed out that I was not following the [...]