Django community: RSS
This page, updated regularly, aggregates Community blog posts from the Django community.
-
Simpler Apache FCGI Django
Inspired by some tips I saw someplace else, and some fiddling on my own, a simpler Django setup on Apache/mod_fcgi: ... -
Simpler Apache FCGI Django
Inspired by some tips I saw someplace else, and some fiddling on my own, a simpler Django setup on Apache/mod_fcgi: ... -
Django alternate auth HOWTO
One of the most frequently-asked questions about Django is "How do I change the authentication system to (hook into my ... -
Django alternate auth HOWTO
One of the most frequently-asked questions about Django is "How do I change the authentication system to (hook into my ... -
What can Django learn from Rails?
One of the questions asked at Snakes & Rubies was about what Django could learn from Rails (and vice versa). Once I finish wrestling Final Cut Pro to the ground you’ll be able to see how Adrian and David answered the question, but in the meantime it got me thinking about some cool features of Rails that are worth ripping off… er… being inspired by: find_or_create convenience methods. -
EN, CZ | No tutorials in czech | české tutoriály smazané
EN (CZ je dole):Improved new admininistration tool of Django has been merged into the main development trunk. That's very nice. SVN Update did not work and unfortunately I deleted accidentaly the czech translation of the tutorial :( CZ:V hlavní vývojové větvy Djanga se objevila nová, přepracovaná forma administračního rozhraní. To je skvělá zpráva. Hlavně tím, že se podle to rozhraní dá znovu použít třeba pro vlastní pohledy.Co je ale špatné, že kvůli tomu jsem omylem smazal překlady úvodního tutorialu. A ať jsem zkoušel nějaké undelete recovery programy, tak nikde nic :(Ach jo. -
EN, CZ | Python Testing Tools
EN: (CZ je dole)Grig have just posted on his blog the list of testing frameworks for Python and Web apps.Even though Django utilizes doctests for its core features, it is definitely testing tool for your models only (and might be for some business logic).Yes, you can mention that Djangotesting (made by the great Hugo) is put into the list of web testing tools, however just note this sentence: "but for now only the model tests are done".Therefore I definitely suggest using other tools mentioned on the list.CZ:Grig právě publikoval na svém blogu seznam testovacích frameworků pro Python a webové aplikace.Ačkoli Django využívá doctests pro svojí interní funkcionalitu, přičemž to samé mohou použít ostatní vývojáři používající Django, myslím si, že doctests je nástroj pouze pro testování modelů (a možná nějaké business logiky).Samozřejmě můžete namítnout, že na seznamu web testovacích nástrojů je také Djangotesting (udělané Hugem zodpovědným za podporu vícejazyčnosti Djanga), ale pokud se podíváte na stránky Djangotesting, tak dole je uvedená věta: "ale teď jsou udělané testy pouze pro modely".Proto rozhodně doporučuji použít i jakýkoli jiný nástroj uvedený na seznamu od Griga. -
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 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. -
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. -
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 ...