Django community: RSS
This page, updated regularly, aggregates Community blog posts from the Django community.
-
Частные проблемы использования django-evolution
Сегодняшний день для меня ознаменовался эпичной битвой с django-evolution. С различными неудобствами этого приложения мы в разработке сначала Куда Все Идут, а потом Афиши сталкиваемся уже довольно давно. Сегодняшний же случай наконец заставил меня перебороть лень и изложить эти проблемы для публики. Должен, тем не менее, обязательно сказать, что не считаю django-evolution плохим средством, потому что знаю, что во многих сценариях использования он вполне справляется со своими обязанностями. Однако архитектурные особенности нашего проекта и наши рабочие привычки, видимо, совмещаются с ним плохо. Поэтому принимайте текст как есть, без далеко идущих выводов, просто к сведению. Очерёдность с syncdb Одно из выбранных решений django-evolution — невмешательство в дела команды syncdb. То есть, django-evolution никогда не пытается выполнять SQL код для создания таблиц. Первое неудобство в этом для нас — более сложный процесс составления миграционного SQL'а. Дело в том, что наши админы не шибко любят запускать изменения в базах всякими неконтролируемыми тулзами, а просят присылать им SQL-скрипты. Django-evolution умеет генерить SQL своих эволюций, а SQL для создания таблиц приходится вырезать руками из базы отдельно. Но гораздо хуже другое. Представьте, что в процессе миграции базы с достаточно старой версии есть и новые модели, и эволюции, применяемые к этим моделям. Поскольку создавать таблицы надо отдельной … -
South is amazing
I just started using South and it is awesome. I tried django-evolution and dmigrations before but they just didn't cut it. I'm just working on a project by myself but I have it running on a slicehost server and I do development on my desktop computer or laptop computer and South has made doing data and schema migrations so much easier. I love being able to create migrations on my dev box and then try them out, make sure they worked, check-in the changed code and the migration files, sync the server's code and run ./manage.py migrate and I'm done. I used to do manual SQL operations on both databases, or just overwrite the older with the newer (if possible). I just did two quick model changes (first was adding a new field that I wanted to seed with the data from another field, and the other was just adding a new blank=True CharField) and I felt like it was an order of magnitude faster than before. -
South is amazing
[img_assist|nid=369|title=|desc=|link=none|align=right|width=210|height=70] I just started using South and it is awesome. I tried django-evolution and dmigrations before but they just didn't cut it. I'm just working on a project by myself but I have it running on a slicehost server and I do development on my desktop computer or laptop computer and South has made doing data and schema migrations so much easier. I love being able to create migrations on my dev box and then try them out, make sure they worked, check-in the changed code and the migration files, sync the server's code and run ./manage.py migrate and I'm done. I used to do manual SQL operations on both databases, or just overwrite the older with the newer (if possible). I just did two quick model changes (first was adding a new field that I wanted to seed with the data from another field, and the other was just adding a new blank=True CharField) and I felt like it was an order of magnitude faster than before. -
Smug Enhancements
Something I've had on my todo list for a very long time now was to get my notes from School published automatically on my website. They are already stored in ReStructured Text, and they are already stored in git repositories, so my use of smug already had me 95% of the way there. (I have a write-up about my note taking method: here) I spent my day off, and finally found some better approaches to the problems I had, and I now have automatic sharing of my notes on my website. The thing that was holding me back was the fact that smug couldn't do everything I wanted it to. I also store other things, such as homework, papers, and other assignments in the same git repository. Also, the way that I would organize a website is different than I would organize my personal files. Here is an example of how I might have a git repository laid out for a given class: ecen924/ +-notes/ +-homework/ +-research_papers/ syllabus.rst This is a very logical way to lay out my own personal repository. If I decide to work on this class, I simply change to the base directory, and I can easily … -
Desenvolvedores do backend do Django 1.1 para Firebird pedem ajuda
Desenvolvedores do backend do Django 1.1 para Firebird pedem ajuda -
Desenvolvedores do backend do Django 1.1 para Firebird pedem ajuda
Desenvolvedores do backend do Django 1.1 para Firebird pedem ajuda -
Preview blog posts within the django admin.
Preview blog posts within the django admin. -
Django 1.1 Talk Video
This is a video of the Django 1.1 talk I gave last night for the Ottawa Python Authors Group. We were bumped out of our reserved room so I did the talk in the pub. The timing worked out quite well, I just finished answering questions as game 6 was starting in the background. Thank you to Andrew Ross and FOSSLC for doing the recording and setting everything up. You will need Flash 10 to hear the audio for this presentation. If you don't like flash, please send a polite note to the ePresence people asking for them to support other formats. Update: "we got screwed by the company we were dealing with for the software & hosting and the talk is lost" And sorry, I have no back-up either. The text from this talk is still available. -
Looking for a Django developer?
Need an experienced Python/Django developer? A good friend of mine is looking for a new gig. He’s employed currently and wants to keep his search on the D/L, so I’m putting the word out on his behalf. I can vouch for this mysterious individual: I’d hire him myself in a heartbeat if I could. He’s got years of Django and Python experience, and a killer work ethic. So if you’ve got a space on your team and would like to fill it with someone awesome let me know (jacob @ this domain) and I’ll put you two in touch. -
Django CRM?
Few of our customer came up asking for some crm functionality from us. Quite a few actually. These are not full blown sugarcrm kind of requirements. Actually they are very simple functionality. Looking at these requirements, it made me think that going for something like sugar would be like taking three steps back to gain a step forward. I would have to spend my time editting out functionality and it would be a dumbing down process all over again. Rather than go this route I thought it would be nice to probably use Django to build them this.Looking around here are some of the links I found relating Django to CRMs:http://www.tschitschereengreen.com/blog/index.php/2007/10/15/django-based-crm/http://code.google.com/p/django-projects-crm/https://launchpad.net/django-cream/+downloadSeems that most of them are either abandoned or not very usable. Sigh ... That's about all that I found for django crm. The rest of the solutions are too much of an overkill in terms of hacking time or completeness. Okay now my favorite part ... back to the Django drawing board. -
BarCamp Cologne
At the weekend (06/06/09 and 07/06/09) I’ve attended the BarCamp in Cologne. The event was completely overbooked just within some hours after the registration page was opened and I’m glad that I’ve got the possibility to attend there. A hint for people who try to attend to an overbooked event: just go there and ask on site to get in. Normally they don’t say no. On saturday I gave a little session there about the JavaScript Framework Dojo and the server-side web framework Django and how you can use Dojango to combine those two worlds. In the session I’ve showed some basic slides that were followed by a simple coding example. The people, who attended my session, were more interested in Dojo instead of Django, because they already knew a lot of Django. After doing my 30 minutes for the session I had to answer Dojo questions for another half an hour. Next time I definitely will do a Dojo session upfront :-) Dojango View more PDF documents from klipstein. Thanks to the organizers and sponsors for having such a nice event in Cologne. Can’t wait for attending the next BarCamp there. -
djapp.org
Another site listing django plugins -
Django 1.1 Talk at Ottawa Python Authors Group
I will be giving my Django 1.1 talk at The Ottawa Python Authors Group meeting on Tuesday. UPDATE: A video of my talk is now available -
New Django-based Homepage
New Django-based Homepage -
The Trials and Tribulations of Django + Git
I just finished my last exam today - Web Programming and Scripting - which explains the distinct lack of activity around here in recent times. Thankfully I could end my exam season on a high, as web programming is, well, what I do - so it wasn't too much of a challenge! Something strange happens [...] -
Django talk
Just finished my Django talk yesterday and I must say while a few dude and dudettes walked out, there was generally quite good interest (better than I thought) from a few young people in the crowd. Initial talks are also underway to form a PUG or Python User Group locally here in Malaysia. I would really like to see this happen. The response has been quite good infact I would go so far as to push to even include Python in some programming curriculum in our universities.That is the only way I would see Python growing and getting more acceptance. On that note too I also mentioned during my talk for frameworks like ROR, Django, TG and it's like to gain more acceptance in the industry, more articles or howtos concentrating on enterprise level deployments of these frameworks have go to be available.Something like: http://enterprise.djangoproject.com? I would really like to see Django grow from it's current girth to something that could rival all the J2EE stuff out there.Nice link here to some good django slides ... damn could have used those for my talk :).P/S -Thanks to all those readers who came to the talk :) -
Installing Django, Solr, Varnish and Supervisord with Buildout
Here I'll detail my buildout configuration for an install of Django, Solr (http search server, ), Varnish (http cache), and supervisord for controling solr and varnish. I'll show how to get a Debian init script for supervisord (of course instructions are valid for Ubuntu). I'll detail parts of base.cfg for each service, and I'll try to explain what and why.This may not be the best way to do that but at least it works for me(tm), so I think it deserves to be shared.My buildout doesn't handle (yet?!) the apache configuration, so I will not cover this. For the curious here is the intended http chain:Apache listens on port 80 and forwards requests to Varnish on port 3128. Unlike a typical Zope setup I don't need rewrite rules (here), simple proxying is enoughVarnish reaches the backend (django) on port 8000Apache listens on port 8000, and serves Django with wsgi. Hopefully it serves only localhost.django may query solr on port 8983Buildout files organisationIn my buildout directory I have:base.cfg: this file contains the core configuration. Specific settings (for developpement, production...) are made in files that extends base.cfg.templates/: this directory contains file templates used in my buildout, for example I put here the … -
Diapositivas de curso de introducción a Django
Hace tiempo que Ramiro Morales, Alejandro Peralta y John Lenton impartieron un curso de introducción a Django en Argentina. Me he topado con las diapositivas del curso, y, aunque haya pasado bastante tiempo, las enlazo porque siguen siendo útiles para todos aquellos que estén empezando con Django 1.0.x ... -
Update Your DjangoSites Screenshots When You Want
I often get asked to update website screenshots over at DjangoSites because somebody has re-designed their website, or the screenshot showed a cross-browser bug in their code. I'm now pleased to announce that screenshots can be renewed on-demand by website owners! Read on for more information. -
Update Your DjangoSites Screenshots When You Want
You can now update your DjangoSites website screenshot by simply editing your listing and ticking the box that says "Re-do Screenshot". To edit a website, first log in to DjangoSites using your username or OpenID. Once logged in, click 'My Sites' in the navigation bar, then click on the website you wish to have updated. From the website detail page, click the 'Edit' link next to your username. Make any changes you wish to make, click the Re-do Screenshot checkbox, and click 'Save'. It's important to note that when you edit a website, it becomes un-verified so it will not be publicly visible. I manually review all submissions and edits, so it might take me a few days to verify and publish your listing after you edit it. This is something that has been on the books for a while, and I'd like to thank Richard Barran for prodding me into getting the change done. While you're editing your listing, you can update your deployment details to help with our Django Deployment Survey. The results will be published shortly for all to see - thank you to those who have responded so far! -
Update Your DjangoSites Screenshots When You Want
You can now update your DjangoSites website screenshot by simply editing your listing and ticking the box that says "Re-do Screenshot". To edit a website, first log in to DjangoSites using your username or OpenID. Once logged in, click 'My Sites' in the navigation bar, then click on the website … -
Class based views
We discussed these at a recent Vancouver Django (May 2009) meetup and it was also a pattern I used on a recent project. -
Зачем нужны сигналы
На днях у меня в форуме возникли почти подряд два топика про сигналы. Оба напомнили мне давно закравшееся в голове подозрение о том, что для многих сигналы -- это магия из серии "если что-то не выходит, наверняка для этого нужны сигналы" :-). Хочу раскрыть тему, потому как рамки форумного ответа особо разгуляться не позволяют. Сигналы синхронны Часто совет (неверный) использовать сигналы встречается в ситуации, когда нужно в веб-запросе сделать какую-то потенциально долгую операцию, и хочется, чтобы она выполнилась как-нибудь в фоне (асинхронно, то есть), чтобы пользователь получил уже какой-нибудь ответ до того, как эта операция завершить. Но сигналы тут совсем ни причем. Не знаю, откуда берется идея, что они выполняются в каком-то другом времени. Возможно из-за того, что механизм их работы где-то там в глубине скрыт, и просто хочется верить, что сделано так как раз для асинхронности (а для чего ещё?). А может виной всему опыт использования POSIX'овых сигналов, которые присылаются ОС в некие произвольные моменты времени и с точки зрения программы действительно происходят асинхронно с её процессом исполнения. На самом же деле механизм вызова сигнала по сути своей прост, как доска. Точнее, как цикл "for". Представьте, что у вас где-то в системе есть глобальный словарик такого рода: signals = … -
Зачем нужны сигналы
На днях у меня в форуме возникли почти подряд два топика про сигналы. Оба напомнили мне давно закравшееся в голове подозрение о том, что для многих сигналы — это магия из серии "если что-то не выходит, наверняка для этого нужны сигналы" :-). Хочу раскрыть тему, потому как рамки форумного ответа особо разгуляться не позволяют. Сигналы синхронны Часто совет (неверный) использовать сигналы встречается в ситуации, когда нужно в веб-запросе сделать какую-то потенциально долгую операцию, и хочется, чтобы она выполнилась как-нибудь в фоне (асинхронно, то есть), чтобы пользователь получил уже какой-нибудь ответ до того, как эта операция завершить. Но сигналы тут совсем ни причем. Не знаю, откуда берется идея, что они выполняются в каком-то другом времени. Возможно из-за того, что механизм их работы где-то там в глубине скрыт, и просто хочется верить, что сделано так как раз для асинхронности (а для чего ещё?). А может виной всему опыт использования POSIX'овых сигналов, которые присылаются ОС в некие произвольные моменты времени и с точки зрения программы действительно происходят асинхронно с её процессом исполнения. На самом же деле механизм вызова сигнала по сути своей прост, как доска. Точнее, как цикл "for". Представьте, что у вас где-то в системе есть глобальный словарик такого рода: signals = … -
Зачем нужны сигналы
На днях у меня в форуме возникли почти подряд два топика про сигналы. Оба напомнили мне давно закравшееся в голове подозрение о том, что для многих сигналы — это магия из серии "если что-то не выходит, наверняка для этого нужны сигналы" :-). Хочу раскрыть тему, потому как рамки форумного ответа особо разгуляться не позволяют. Сигналы синхронны Часто совет (неверный) использовать сигналы встречается в ситуации, когда нужно в веб-запросе сделать какую-то потенциально долгую операцию, и хочется, чтобы она выполнилась как-нибудь в фоне (асинхронно, то есть), чтобы пользователь получил уже какой-нибудь ответ до того, как эта операция завершить. Но сигналы тут совсем ни причем. Не знаю, откуда берется идея, что они выполняются в каком-то другом времени. Возможно из-за того, что механизм их работы где-то там в глубине скрыт, и просто хочется верить, что сделано так как раз для асинхронности (а для чего ещё?). А может виной всему опыт использования POSIX'овых сигналов, которые присылаются ОС в некие произвольные моменты времени и с точки зрения программы действительно происходят асинхронно с её процессом исполнения. На самом же деле механизм вызова сигнала по сути своей прост, как доска. Точнее, как цикл "for". Представьте, что у вас где-то в системе есть глобальный словарик такого рода: signals = …