Django community: Community blog posts RSS
This page, updated regularly, aggregates Community blog posts from the Django community.
-
Have more…
Have more than thou showest, Speak less than thou knowest, Lend less than thou owest, Ride more than thou goest. — King Lear 1.4.71-4 -
Django performance tips
Django handles lots of traffic with ease; Django sites have survived slashdottings, farkings, and more. Here are some notes on how we tweak our servers to get that type of high performance. Use a separate media server Django deliberately doesn’t serve media for you, and it’s designed that way to save you from yourself. If you try to serve media from the same Apache instance that’s serving Django, you’re going to absolutely kill performance. -
Snakes, rubies, and some comments
A week ago I posted a link to David's take on "Snakes and Rubies" event. Of course I am talking about article written by RoR's creator. It is a great read, but this time I've read reader's comments (or "challenges to the Loud Thinking"). Oh, boy! It gives you insight into Rails, Django, and their perception by developers and users. For example, I am not very familiar with i18n problem, but it looks like a lot of people were quite passionate about it. In general it gave me a different prospective on problems of fellow DreamHost customer Alex Payne (outlined here). When I was setting up some of my stuff on DreamHost using Django I had to figure out some things: proper FastCGI setup, .htaccess incantations, and so on. I was kind of envious of RoR's users because "Ruby on Rails now fully supported complete with FastCGI!" (taken from What's New marquee section of DreamHost's main page). I assumed DreamHost had these problems solved. It did. I didn't know at that time that there are some other problems mentioned by Alex. Django is rock solid, I never had problems with stability, memory leaks, and so on. My blog is up … -
Django Ajax Redux
Three weeks ago we had a discussion about Ajax support in Django, which resulted in "Ajax and Django" wiki page. A short recap: it lists a vague goal, some general considerations, and possible strategies; it scratches the surface of existing implementations (mostly RoR), existing third-party toolkits (Mochikit/Dojo), and related RPC-style and REST-style services. No code was produced, no consensus was reached, but now it is a part of Django's Version One roadmap. Now three weeks later I assume that everybody had time to think about it. I want to move the whole discussion on to a more practical plane. Basically I want to propose an implementation. At least I’ll collect your thoughts, criticism, corrections, and, hopefully, blessings. Giving the speculative nature of this proposal, which is based solely on my experience, I decided against posting it in the wiki in its present form. The size of this proposal is not conductive to mail list posting. Hence it is here. Saddle up. Rationale I am a conservative pragmatic, who values the art of possible — don’t expect any outrages proposals. And like many programmers I am quite lazy — don’t expect glorious efforts required to implement my proposal. What I want … -
Hiring, part II
Want to work for the most innovative news organization in the country, if not the world? Want to join a team of the best and brightest online media developers? Want to get paid to create award-winning web sites? Well, have I got the job for you: World Online is looking for a kick-ass front-end web developer. Update This position has been filled; thanks to everyone who applied. We’re still hiring a back-end web programmer, though. -
We're hiring!
Want to work for the most innovative news organization in the country, if not the world? Want to join a team of the best and brightest online media developers? Want to get paid to create award-winning web sites? Well, have I got the job for you: World Online is looking for a kick-ass web developer to join our team. About the job Unofficially, the job description is “build cool shit.” Our goals are nothing short of being the coolest and most innovative web team in the world. -
Lightpd on Ubuntu
Ubuntu “Breezy” doesn’t have lighttpd (yet), and the only Ubuntu binaries I could find were (a) stale and (b) compiled for x86. Building lighty from source with the standard configure; make; make install dance works fine, but it forgoes APT… and why would you use Ubuntu if you wanted to avoid APT? So, here’s how to build lighty from source into a Ubuntu package so it’s all nicely wrapped up and maintained for you. -
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.