Django community: RSS
This page, updated regularly, aggregates Community blog posts from the Django community.
-
Conference Talks I want to see
I'm writing this the day after Github's pycodeconf ended. That was an amazing conference, and I'll be blogging it soon (I'll also be writing about PyCon Australia, PyCon New Zealand, and DjangoCon US). With all this conference experience very current in my head, things I've seen and done at them, and the deadline for PyCon US submissions coming up, here are some talks I really want to see happen in the next six months. If not at PyCon US, then please consider these for other forthcoming events!Note: Couldn't do my preferred 'linkify' as well as I liked thanks to bad hotel internet. I'll clean it up later.Advanced SQL Alchemy UsageI think the uber-powerful SQL Alchemy ORM needs the same sort of treatment me and Miguel Araujo gave on Advanced Django Forms Usage. Not a 30 tutorial or overview or 'State of', but tricks and patterns by someone who has used it frequently on more than one project. Multiple projects is important because the speaker should have had the chance to try multiple approaches. Start with something simple like a TimeStampModel all model classes might inherit from, then go into deeper and and more complex technical detail. Finish the talk with something … -
Propietariosonline, la visió tècnica
Aquesta setmana és obligat parlar del llançament de propietariosonline.com, una aplicació web per a la gestió de comunitats de propietaris que hem llançat des d'APSL. Junt amb la web de trobacasa forma el gruix dels projectes propis. Actualment estam en fase beta, és a dir, mirant de netejar tots els possibles errors que puguin haver passat els nostres testeigs inicials i sobre tot, copsant les opinions dels beta-testers, per tal d'anar incorporant els suggeriments de millora que ens facin. Personalment una de les coses que més em motiven a l'hora de fer un programa és que aquest sigui útil, i per això res millor que fer-lo en col·laboració amb els usuaris potencials del programa. Com que supòs que no llegiu això per a que us parli de la gestió de les comunitats de propietaris, aniré entrant en matèria. L'aplicació està desenvolupada amb Django en la seva versió 1.3. És la primera aplicació grossa en la que feim un ús intensiu de les generic class views. Com molts sabreu abans de la versió 1.3 la manera de passar del la petició (el request) cap a la sortida html era mitjançant una funció que es posava a l'arxiu views.py. Amb la versió … -
Why I don't like class-based generic views
… because I have to replace this: def category(request, slug, language): translation.activate(language or 'ru') category = get_object_or_404(models.Category, slug=slug) return object_list(request, template_name = 'marcus/category.html', queryset = models.Article.public.language(language).filter(categories=category), paginate_by = settings.MARCUS_PAGINATE_BY, extra_context = { 'category': models.Translation(category, language), 'language': language, }, ) with this: class Category(generic.ListView): template_name = 'marcus/category.html' paginate_by = settings.MARCUS_PAGINATE_BY def get_queryset(self): self.category = get_object_or_404(models.Category, slug=self.args[0]) return models.Article.public.language(self.args[1]).filter(categories=self.category) def get_context_data(self, **kwargs): translation.activate(self.args[1] or 'ru') context = super(Category, self).get_context_data(**kwargs) context.update({ 'category': models.Translation(self.category, self.args[1]), 'language': self.args[1], }) return context Now, these snippets might not look strikingly different from the first sight so let me break them down for you and explain my point: When your code is a function it is this function that actually works and calls other functions. When your code lives in overridden methods, something else works elsewhere and calls your code. This is called "inversion of control" and it makes code harder to read because you no longer see why and in which order things happen. This is not necessarily a bad thing (the whole framework works by inverting control, after all) but in this particular case it did make me think harder. In the original code I call translation.activate before anything else to make sure that any code … -
Dutch Django meeting in Amsterdam summaries
-
The home office
The home office -
Some Pull Requests
I have had a number of pull requests backing up on my personal projects that I wanted to get to but time always gets squeezed out of the day before I have a chance to look into them. Well, this afternoon, I just made the time. I pulled in changes, commented on commits and requests, and published new releases to PyPI. Here is a summary of changes across four different projects: postman This was a sample utility that I wrote for an article that I was commissioned to write for the Python AWS portal. Turns out I guess it has been useful to some folks, even to the point where I got some pull requests. I really don't use this utility much anymore but was thankful for the pull requests nonetheless. Graham Poulter, from Cape Town, added some excellent improvements in Pull Request #5. I especially liked the use of the print function and string formatters, as well as showing more structured output that is sure to be more useful to the end user. The only thing that I'd like to see changed is the commits he made to the setup.py. I did not go ahead and pull all the … -
Dutch Django meeting in Amsterdam, Wednesday 5 Oktober
-
Ведущие разработчики о будущем Джанго
Во время последнего DjangoCon я пересёкся с несколькими из ведущих разработчиков и попросил их поделиться своими взглядами на будущее Джанго. Идея едва ли свежая — любого лидера чего бы то ни было постоянно достают вопросами о БУДУЩЕМ. Но у меня был и свой резон. По прошествии некоторого времени вдали от Джанго-разработки, мне было интересно, куда она движется, а также хотелось найти в себе мотивацию снова включиться в процесс. Стоит заметить, что все интервью были независимы друг от друга, и мои собеседники не знали о них заранее. Записывал разговоры я старым и совершенно нетехнологичным способом — делая заметки на бумажке, поэтому всё, что написано дальше, это именно заметки, а не точные слова. Джейкоб Каплан-Мосс Джейкоб — один из первоначальных разработчиков Джанго. Его диктаторская воля часто является последней в разрешении споров раз и навсегда. Что ждёт Джанго дальше? Я не знаю! Нет никакого генерального плана. Джанго следует за сообществом, мы слушаем, чего хотят люди. Что бы лично вам хотелось видеть в Джанго? Это ни в коем случае не "официальная" позиция, но вот несколько вещей: замена auth на что-нибудь получше, более гибкое Джанго не очень хорошо подходит для real-time веб-сервисов, было бы хорошо иметь такую поддержку … и хотя это не личная хотелка, … -
Ведущие разработчики о будущем Джанго
Во время последнего DjangoCon я пересёкся с несколькими из ведущих разработчиков и попросил их поделиться своими взглядами на будущее Джанго. Идея едва ли свежая — любого лидера чего бы то ни было постоянно достают вопросами о БУДУЩЕМ. Но у меня был и свой резон. По прошествии некоторого времени вдали от Джанго-разработки, мне было интересно, куда она движется, а также хотелось найти в себе мотивацию снова включиться в процесс. Стоит заметить, что все интервью были независимы друг от друга, и мои собеседники не знали о них заранее. Записывал разговоры я старым и совершенно нетехнологичным способом — делая заметки на бумажке, поэтому всё, что написано дальше, это именно заметки, а не точные слова. Джейкоб Каплан-Мосс Джейкоб — один из первоначальных разработчиков Джанго. Его диктаторская воля часто является последней в разрешении споров раз и навсегда. Что ждёт Джанго дальше? Я не знаю! Нет никакого генерального плана. Джанго следует за сообществом, мы слушаем, чего хотят люди. Что бы лично вам хотелось видеть в Джанго? Это ни в коем случае не "официальная" позиция, но вот несколько вещей: замена auth на что-нибудь получше, более гибкое Джанго не очень хорошо подходит для real-time веб-сервисов, было бы хорошо иметь такую поддержку … и хотя это не личная хотелка, … -
Neil Gaiman’s Anansi Boys…
A story about a journey in Greece, a bartender, an unexpected gift and the best dedication I have ever read. -
Sans lui, zinnia-rrivait pas. Lui qui ? Django Zinnia, la django app du mois précédent
Cela fait maintenant plusieurs mois que je n’arrive pas à rattraper le retard d’une django app du mois. J’ai donc décidé de suivre les conseils de ce cher daks et d’officialiser mon retard en parlant de Django app du mois précédent. Voici donc la première django app du mois précédent (et bon j’ai bien failli devoir parler de la django app d’il y a deux mois), Django Zinnia, un moteur de blog qu’il est bien (et merci à arcagenis pour la découverte) 1- Où on le trouve, comment on l’installe, tout ça quoi (et la doc) ? Où est ce qu’on le trouve, sur son site web, sa page pypi et sa page github. Pour l’installer, vous aurez plusieurs plusieurs solutions : un git clone tout simple un petit pip install en utilisant le support git de pip un petit easy_install ( ou pip install normal) pour avoir la dernière version stable. Niveau démo, il existe et c’est carrément cool : une démo du rendu (qui sert à héberger la doc) une démo de la version d’administration. Un planet qui liste tous les blogs utilisant Zinnia Concernant la doc, elle est vraiment super bien foutue et très complète. Installation, Configuration, … -
Caktus Group Welcomes Designer and Front End Developer Julia Elman
I'm delighted to announce that Julia Elman has joined our growing team of web developers here at Caktus. Julia started her design career almost 10 years ago in an internal marketing group, and first learned about Django at the SXSW Interactive Festival in 2008. Prior to joining the Caktus team, Julia worked at the Lawrence ... -
Caktus Group Welcomes Designer and Front End Developer Julia Elman
I'm delighted to announce that Julia Elman has joined our growing team of web developers here at Caktus. Julia started her design career almost 10 years ago in an internal marketing group, and first learned about Django at the SXSW Interactive Festival in 2008. Prior to joining the Caktus team, Julia worked at the Lawrence ... -
Caktus Group Welcomes Designer and Front End Developer Julia Elman
I'm delighted to announce that Julia Elman has joined our growing team of web developers here at Caktus. Julia started her design career almost 10 years ago in an internal marketing group, and first learned about Django at the SXSW Interactive Festival in 2008. Prior to joining the Caktus team, Julia worked at the Lawrence ... -
We're moving to github
-
Django admin site: access, filtering and restricting
-
Django Forms I: Custom fields and widgets in detail
On Thursday September 8th I copresented with Daniel Greenfeld my first talk “Advanced Django Form Usage” at DjangoCon.us 2011. It was my first talk for many reasons. I had never spoken in front of such a large audience before, less in English and this was also my first Python talk. If you haven’t seen the video of the talk and the slides, you probably want to, because this post will try to extend, clarify and recap it somehow. Also this will be my official erratum for things that were not exactly true or right that appeared in the slides Some people really loved the talk and came after it to comment it with me and ask some questions. By that time, I was already thinking that the topic did deserve its own series of posts. Gabriel Hurley, Django committer and documentation specialist, stated: Apparently some core developers were asking to use the code examples and a transcript from the talk as a starting point for this task. Well, I wasn’t sure if the transcript would be good enough, many things were left to say, but I agreed with Gabriel that it’s a good starting point to base docs on, which … -
Django Forms I: Custom fields and widgets in detail
On Thursday September 8th I copresented with Daniel Greenfeld my first talk “Advanced Django Form Usage” at DjangoCon.us 2011. It was my first talk for many reasons. I had never spoken in front of such a large audience before, less in English and this was also my first Python talk. If you haven’t seen the video of the talk and the slides, you probably want to, because this post will try to extend, clarify and recap it somehow. Also this will be my official erratum for things that were not exactly true or right that appeared in the slides Some people really loved the talk and came after it to comment it with me and ask some questions. By that time, I was already thinking that the topic did deserve its own series of posts. Gabriel Hurley, Django committer and documentation specialist, stated: Apparently some core developers were asking to use the code examples and a transcript from the talk as a starting point for this task. Well, I wasn’t sure if the transcript would be good enough, many things were left to say, but I agreed with Gabriel that it’s a good starting point to base docs on, which … -
Streamline your Django workflow
This post is about a couple of improvements I made to my Django development environments recently. It started with a simple issue. Whenever I want to work on something, I need to: Run the Django development server, Run compass watch on my CSS files, Run the command that automatically runs my tests when a file changes in the project. That's 3 terminal windows to open (I don't use tabs :) and twice as much commands to type. Tedious, to say the least. Luckily a friend / colleague of mine, Bertrand, pointed me to a tool to manage such repetitive tasks: Foreman. To quote their documentation: Foreman is a tool to manage Procfile-based applications. Which means (for us), it reads a file that describes different processes and runs them in parallel, merging the output of every process. First, let's install the gem. Making gems play nice with virtualenv If you like virtualenv, you'll probably don't want to install ruby gems system-wide. To tell gem to install stuff in your virtualenv, just add: export GEM_HOME="$VIRTUAL_ENV/gems" export GEM_PATH="" export PATH=$PATH:$GEM_HOME/bin to your ~/.virtualenvs/postactivate hook. Now you can gem install stuff and it'll be isolated from your system. As a side note, gem compiles … -
Design by faking
Design by faking -
É amanhã – Maior encontro da comunidade brasileira de Python
Tweet Amanhã é o dia do maior encontro da comunidade brasileira de Python. Estou bastante ansioso pelo evento, ótima oportunidade para encontrar a comunidade, conversar e trocar conhecimento. A grade do evento está muito boa, palestras abordando uma variedade enorme de temas para todos os níveis de conhecimento. Algumas pessoas me perguntaram se as palestras são muito avançadas, se é possível alguém iniciante ter bom aproveitamento do evento. A resposta é sim! Tem palestras para todos os níveis, se você está querendo aprender Python, essa é sua grande oportunidade. Se você já conhece e quer melhorar suas técnicas, também é o evento ideal. Para desenvolvedores experientes, também. Cada palestra tem sua classificação, se é iniciante, intermediária ou avançada, basta escolher de acordo com seu nível de conhecimento e interesse pelo tema. Sem contar na oportunidade de conversar com quem utiliza Python profissionalmente, fazer networking e até gerar negócios. Portanto, se você tem interesse em Python, participe do evento, caso contrário, só terá outra oportunidade como esta no ano que vem. Eu vou apresentar a palestra Django e MongoDB no sábado, dia 01, às 14h. Essa palestra tem um conteúdo mais avançado, vou falar um pouco da minha aventura em desenvolver … -
Integrating the flask microframework with the peewee ORM
I'd like to write a post about a project I've been working on for the past month or so. I've had a great time working on it and am excited to start putting it to use. The project is called flask-peewee -- it is a set of utilities that bridges the python microframework flask and the lightweight ORM peewee. It is packaged as a flask extension and comes with the following batteries included: Admin interface a-la django RESTful API toolkit a-la tastypie Authentication system The documentation provides in-depth explanations on the usage of these features, but if you are already familiar with django things shouldn't look too strange. The purpose of this post will be to highlight the main features of the project and discuss a little bit about their implementation. Admin interface Users of the django framework often say how valuable the admin interface is. It is, for many site managers, their primary means of interacting with django-powered sites, and for developers it is great for rapid prototyping. Considering this, one of the first things that bit me when I started working with flask was that there was no admin interface. Several times I've stopped a project before it … -
Beating Google With CouchDB, Celery and Whoosh (Part 1)
Ok, let’s get this out of the way right at the start – the title is a huge overstatement. This series of posts will show you how to create a search engine using standard Python tools like Django, Celery and Whoosh with CouchDB as the backend. Celery is a message passing library that makes it [...] -
Integrating the flask microframework with the peewee ORM
I'd like to write a post about a project I've been working on for the past month or so. I've had a great time working on it and am excited to start putting it to use. The project is called flask-peewee -- it is a set of utilities that bridges the python microframework flask and the lightweight ORM peewee. It is packaged as a flask extension and comes with the following batteries included: Admin interface a-la django RESTful API toolkit a-la tastypie Authentication system The documentation provides in-depth explanations on the usage of these features, but if you are already familiar with django things shouldn't look too strange. The purpose of this post will be to highlight the main features of the project and discuss a little bit about their implementation. Admin interface Users of the django framework often say how valuable the admin interface is. It is, for many site managers, their primary means of interacting with django-powered sites, and for developers it is great for rapid prototyping. Considering this, one of the first things that bit me when I started working with flask was that there was no admin interface. Several times I've stopped a project before it … -
Integrating the flask microframework with the peewee ORM
I'd like to write a post about a project I've been working on for the past month or so. I've had a great time working on it and am excited to start putting it to use. The project is called flask-peewee -- it is a set of utilities that bridges the python microframework flask and the lightweight ORM peewee. It is packaged as a flask extension and comes with the following batteries included: Admin interface a-la django RESTful API toolkit a-la tastypie Authentication system The documentation provides in-depth explanations on the usage of these features, but if you are already familiar with django things shouldn't look too strange. The purpose of this post will be to highlight the main features of the project and discuss a little bit about their implementation. Admin interface Users of the django framework often say how valuable the admin interface is. It is, for many site managers, their primary means of interacting with django-powered sites, and for developers it is great for rapid prototyping. Considering this, one of the first things that bit me when I started working with flask was that there was no admin interface. Several times I've stopped a project before it …