Django community: RSS
This page, updated regularly, aggregates Community blog posts from the Django community.
-
Django čeština otestovaná
Tak jsem se dostal k otestování češtiny v Djangu (rozuměj překladů, samotné využití češtiny šlo vždy).Docela mě překvapilo, podle čeho všeho se může řídit to, že Django bude komunikovat česky. Ať už nastavením cookie, tvrdým nastavením v settings, výběr podle preferovaného jazyka v prohlížeči nebo URL redirectem (pro výběr pomocí vlaječek).Všechno tohle funguje a přitom stačí do settings dát 1 řádek.'django.middleware.locale.LocaleMiddleware',A je to. O všechno ostatní se už postarají interní mechanismy Djanga.Adrian k tomu vydal opět pěknou dokumentaci.Django pak mluví česky. Tedy skoro. Admin ještě není úplně připraven pro překlady, a protože se pracuje na novém adminu, takse bude překládat až ten. Podle tempa prací tuším že tak do měsíce (to je ale jenom můj odhad).Nicméně už teď se dá využívat všeho, co umožňují .po (gettext) formáty. Tj. třeba pluralismus.Např. pro english texty:"Watch your mouth! The word %s is not allowed here.""Watch your mouth! The words %s are not allowed here."se dá nadefinovat:Pro 1 slovo: "Mluvte slušně! Slovo %s zde není přípustné."Pro 2,3,4 slova: "Mluvte slušně! Slova %s zde nejsou přípustná."Pro 5 a více: "Mluvte slušně! Těchto %s slov zde nepřipoušíme."Konečně webové aplikace budou mluvit o něco více česky a ne "tatarsky".PS: Na českých dokumentacích se taky pracuje :) -
CZ | Django 0.90
As you can see I have added the CZ (or EN) in the title to let the readers know what is the language of the article. Yep, this one is CZ only :)Tak po velkem dohadovani byl vytvoren aktualni tarball Django web frameworku. Jedna se o v 0.9, protoze do 1. verze je planovano udelat jeste nekolik veci, predevsim:- podpora transakci- nove admin rozhrani- screencasty :)- jednodussi podpora AJAXu a navazujicich JS toolkitu- a dalsiNa webu [http://www.djangoproject.com] krome taru najdete i Python egg vytvorene pro Python 2.4.Django je pro Python neco, jako je Rails pro Ruby.Ac se teprve jedna o prvni tar release, Django se jiz nekolik let (cca 2) pouziva v produkcnim prostredi, pricemz letos bylo uvolneno jeko Open source. Pro zajimavost web s Djangem prezil 3 x slashdotting.Pro nase konciny je dobra zprava, ze Django primarne pracuje s UTF-8 a cesky preklad je jiz vytvoren a prubezne aktualizovan. Ceske detaily najdete na tomhle blogu [http://www.svarz.cz/translate/]Radek -
Django | Weblog | Django desktops
Konečně se pro Django objevily také nějaké "goodies".Na webu jsou první wallpapers.Upřímně, zatím nic moc. Podle mne Django na marketingového guru zatím čeká.Já osobně jsem si wallpaper raději vylepšil ještě postavičkou od d!o.Můžete ho vidět tady. -
Django česky!
Aaaah, konečně se spojila i18n větev do Django Python Web Frameworku.Django Web Framework (WFW) je považován za obdobu Ruby on Rails, ale samozřejmě s použitím Pythona. Já mu osobně moc fandím, protože používá Python :) a hlavně od ostatních WFW má již nějakou dobu reálné využití. No a jako perličku - přežil 3 x Slashdotting.i18n znamená, že Django umí mluvit vícejazyčně, tedy i česky :)Tedy česky do té míry, jak jsem to přeložil a neotestoval :(Můžem dělat vícejazyčné šablony, vízejazyčné modely, apod.Jak poznamenal Euegene, Django teď podporuje 11 jazyků.Adrian brzy nahodí dokumentaci na web, takže to snad bude snadné pro každého, protože tenhle člověk je v psaní genius.No, otestuji to tento víkend... -
We’re Moving to Kansas!
No really, we’re moving to Kansas. I’ve accepted a position at World Online, the online division of the Lawrence Journal-World. I’ll be working on some award winning sites including LJWorld.com, lawrence.com, KUsports.com using my favorite web framework: Django. I’m really excited about working with an awesome team of people doing some really cool stuff. And of course I’m completely stoked about working with Django on a daily basis. I’ll talk about what I’m up to when I can but there will be times when I have to keep my lips zipped. I guess now might be a good time to mention that this is my personal weblog and that views/opinions/etc expressed here are mine and do not necessarily reflect those of my employer. Needless to say I’ve been a bit busy with getting up to speed at work and planning the move. I’ve been meaning to write this post for some time now and had to delete a completely out of date post that I had half written while in Lawrence. Blogging will probably be light until things settle out, but in the meantime keep an eye on my del.icio.us links. Strap in, Toto! -
Exhedra: a conferencing/forum application in Django
I've recently started some development on the Exhedra project (a conferencing/forum application) using Django. For anyone reading this post on SDJournal, the posts from this category are also syndicated on the Django Community page. Rather than clutter up that page with multiple posts about this project I've set up a separate weblog to cover it. -
Django IRC logs to the rescue
The 2nd Django tutorial starts with getting the admin interface up and running by creating an initial user account and using the built in development web server. However, after following the instructions quite closely I was still getting Tried all URL patterns but didn't find a match for /admin when requesting the admin URL. A search of the IRC logs for #django revealed that for it to work the settings module must be set to .admin so if you're using myproject.settings.main for the working with the model in the first tutorial you'll need --settings=myproject.settings.admin. -
Django Framework
Django is a Python web application framework. It's been developed and used over the past 2 years to run a number of online news sites such as lawrence.com and LJWorld.com. It has recently been made available under a BSD license and already a community is building around it. It seems to be focused on automating as much as possible and adhering to the DRY principle.Looks like Adrian Holavity and Jacob Kaplan-Moss are the guys behind it.Update: From the FAQ, the other Django developers are Simon Willison (whose weblog I've been reading for a long time) and Wilson Miner. -
allofmp3.com RSS feed
I really love allofmp3.com. It’s really everything a music download service should be: the site is nicely designed, works perfectly, and allows you to download music in whatever codec you prefer. Since you’re charged by the megabyte, you depending on how much fidelity you’d like. An mp3 album at a reasonable bitrate is only about $2 (beat that, Apple!), but if you want a lossless codec you’ll probably pay about $8 - $10. -
Private Dancer?
As I was going over some notes on our internal wiki, I ran across a list of rejected names for the framework that become Django: brazos superglue bodhisattva webbing boidae bohdi skoro consolidata piston physique silhouette valance anson The Python Web Framework (PWF) Tornado Publishing System Web Type Framework Pypeline super magic machine magic machine private dancer “the CMS” The Give-a-Damn machine boltdozer banister garbonzo Simon fizgig palmy cogent pith pithy pyth pythy festoon poeks lavalier clerisy bandwidth django -
The Emerging Django Job Market
A company in Cincinnati, Ohio is looking for a web developer. Check out the framework they’re using: We are developing e-commerce sites based on Python and Django framework. Experience in Python, object oriented programming, MySql, PostgreSQL, and other web programming technologies is requested. This person would also be responsible for maintaining other scripts on various websites we maintain and host. The main focus will be on e-commerce development. It’s great to see jobs emerging for this amazing little framework that has been public for just a month and a half. This one popped up on a feedster search for django in my aggregator. I can’t wait to see where we are a year from now. -
Django: Big Integer Fields
I submitted a patch to Django Ticket #399 (request for a bigint field type). It still needs testing but works at a quick glance on mysql. Here’s a shot of them in action from the admin interface (the input is just too small and just too big respectively): Update: BigIntegerField works perfectly on PostgreSQL but because it doesn’t have an unsigned integer type (that I can find), PostitiveBigIntegerField isn’t going to make it all the way up to 18,446,744,073,709,551,615 without using an arbitrary precision NUMERIC or mapping zero to -9,223,372,036,854,775,808. Both solutions are messy and it would be a shame to have the mysql and postgres backends behave so differently. As an aside, it looks like this is already the case with mysql’s IntegerFields being UNSIGNED while Postgres just checks to make sure that the integers are positive before inserting. The best solution would probably be to employ backend-specific range checking for these monsterous numbers. That way you won’t end up out of range in PostgreSQL but you’re also not penalizing MySQL for being able to count to 18 bajillion. At this point it would be safe to drop in BigIntegerField as is (as soon as I check it out … -
A note to web designers
When a job listing says it requires knowledge of web standards, don’t bother applying if you haven’t changed your markup since 1998. From the web page of a designer applying for the senior designer position at World Online: <META NAME=GENERATOR CONTENT="Adobe PageMill 3.0 Mac"> Dude, don’t even bother. (If your markup is better than that and you want to work for the best online news team in the world, why not apply? -
Django Model Syntax Change
Adrian has committed the Django model syntax changes. Current models will have to be rewritten — once — but the new syntax looks a lot cleaner and I think it will reduce the learning curve for newcomers to the platform. Be sure to check out the full documentation as well as a brief screencast highlighting the changes. I will do my best to update my CRUD Generic Views tutorial as soon as possible to reflect the syntax change. Update: Here’s the updated tasks.py -
A quick comparison
The Microsoft way Windows 2003 Server, Enterprise Edition: $3,999 Visual Studio.NET, Enterprise Edition: $2,499 per developer SQL Server, Enterprise Edition: $19,999 per processor Programming in an outdated, insecure, hard to use environment: priceless. The Linux way Debian Linux: free Apache 2.0: free PostgreSQL: free Perl/PHP/Python: free Programing in a fun, modern, secure environment: priceless. -
Sera's Pancakes
For three 3 eggs 2 cups flour 3/4 teaspoon baking powder 3/4 teaspoon salt 2 tablespoons sugar 1 - 1 1/2 cup milk 3 tablespoons melted butter For four 4 eggs 2 2/3 cups flour 3/4 teaspoon baking powder 1 teaspoon salt 3 tablespoons sugar 1 3/4 - 2 1/4 cup milk 4 tablespoons melted butter Combine eggs, flour, baking power, salt, sugar and the smaller amount of milk and whisk until smooth. -
Redirects in Django
While working on the authentication bits for a feed-reader application I'm writing (more on that later), I noticed that polipo ... -
Redirects in Django
While working on the authentication bits for a feed-reader application I'm writing (more on that later), I noticed that polipo ... -
Django Generic Views: CRUD
Note: I’ve not yet updated this to reflect the new model syntax. For the time being you can take a look at the new model syntax for tasks here. There are lots of gems buried in Django that are slowly coming to light. Generic views and specifically the CRUD (create, update, delete) generic views are extremely powerful but underdocumented. This brief tutorial will show you how to make use of CRUD generic views in your Django application. One of my first encounters with Rails was the simple todo list tutorial which managed to relate lots of useful information by creating a simple yet useful application. While I will do my best to point out interesting and useful things along the way, it is probably best that you be familiar with the official Django tutorials. Now would also probably be a good time to mention that this tutorial works for me using MySQL and revision 524. Django is under constant development, so things may change. I’ll do my best to keep up with changes. Getting Started As with all Django projects, the best place to start is to start with django-admin.py startproject todo. Make sure that the directory you created your … -
Django and Rails
Sam Newman just posted a comparison of Django and Rails which is extremely balanced and fair, and a very good read. I’ve obviously got a few bits of feedback, so here goes: Background As a framework Rails has been around for little over a year, whereas as a framework in its own right django has only been public for around two months. Actually, Django’s been in use internally for over two years, although we only got the buy-in from management to release it as open-source two months ago. -
Reboot
Well, now. I hear that there’s this thing all the cool kids are doing. Something about a web stick, or a web tree or something… Web Log, that’s it. (Hear that? It’s me running after the bandwagon as fast as my lazy ass can take me.) Of course, this whole site is now powered by Django — including some neat little tricks I’ll try to share later on. -
Rob Curley Blew My Mind
A few days back I listened to this IMA Keynote by Rob Curley on IT Conversations. It blew my mind. I started out looking for some insight in to the team behind Django, The Lawrence Journal-World, lawrence.com, and so on. I got a whole lot more than I had bargained for. If you’re involved in old media, new media, any media, or just want a glimpse of the future (I hope), please have a listen. It will be very interesting to see what happens in the next few months as Django takes flight, Rob heads to Naples (with technical backup from Eric) and Adrian telecommutes to The Washington Post -
Django Markup Template Tags
Changeset 467 contains template tags for renderingTextile (using PyTextile), Markdown (using python-markdown), and ReStructured Text (using docutils). You can find usage examples and some basic tests in markup.py. You need to make sure that you have the correct modules installed to do the heavy lifting, but the tags are extremely easy to use: {{ textile_content|textile }} {{ markdown_content|markdown }} {{ rest_content|restructuredtext }} -
Django: Tutorial 4 and RSS
Today Adrian posted Django Tutorial 4 which covers form processing and generic views. Everyone dive in! In other news, if you’re looking to generate RSS using Django “the easy way,” look no further than this #django log and associated pastebin. As always, svn up if you haven’t in the last few hours. Update: The pastebin dissapeared, so here’s a transcribed version of what was in there. Typos are mine and not Adrian’s of course. -
HTTP Headers and Django
Andrew Brehaut has a hot tip about HTTP headers and Django: HttpResponse objects contain a headers dictionary, that you can easily add and remove headers from using dictionary notation You can read more about it and see usage examples in his post.