Django community: Community blog posts RSS
This page, updated regularly, aggregates Community blog posts from the Django community.
-
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 … -
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 … -
DjangoMaine.com - Django User group in Portland Maine
When I was at DjangoCon a few weeks ago, it was great hanging out with all of the fellow Djangonauts talking about Django and all of other great technologies. Now that I'm home, I have decided to get off my butt and do something I should have done a while ago. Without further ado, I am pleased to announce the creation of DjangoMaine.com, a new Django user group based in Portland Maine. We plan on meeting monthly to discuss Django and other python related technologies. We are currently looking for members, and topic ideas for future meetings. If you have any ideas or you are interesting in hearing more, check out our website http:///www.DjangoMaine.com -
State of Django Explorer
State of Django Explorer -
Tmux scripting
I usually need to run more than 1 command for some project and got tired of searching through those putty windows for the session I want. So I thought of using a terminal multiplexer like Tmux. I’m using celery with two queues and I need to run this: manage.py celeryd -Q queueA manage.py celeryd -Q queueB manage.py celerycam -E I need celerycam because it will get those stats in djcelery up to date. It’s also a good idea to tail the postgresql log – when you break your models or database in some cases Django isn’t very helpful so this helps a lot: tail -f /var/log/postgresql/postgresql-8.4-main.log I use a wide screen so I want a layout like this: +------------------------------------+-------------------+ | | | | runserver | | | | celerycam | +------------------------------------+ | | | | | celeryd +-------------------+ | | | +------------------------------------+ | | | postgresql log | | celeryd | | | | | +------------------------------------+-------------------+ I also want to start a new tmux session from the same command so I can close everything easily – those celeryd’s don’t reload automatically :( You’d usually run something like: tmux new-session "tmux splitw 'command1'; tmux splitw 'command3'; tmux splitw 'command3'; command4" but … -
Tmux scripting
I usually need to run more than 1 command for some project and got tired of searching through those putty windows for the session I want. So I thought of using a terminal multiplexer like Tmux. I'm using celery with two queues and I need to run this: manage.py celeryd -Q queueA manage.py celeryd -Q queueB manage.py celerycam -E I need celerycam because it will get those stats in djcelery up to date. It's also a good idea to tail the postgresql log - when you break your models or database in some cases Django isn't very helpful so this helps a lot: tail -f /var/log/postgresql/postgresql-8.4-main.log I use a wide screen so I want a layout like this: +------------------------------------+-------------------+ | | | | runserver | | | | celerycam | +------------------------------------+ | | | | | celeryd +-------------------+ | | | +------------------------------------+ | | | postgresql log | | celeryd | | | | | +------------------------------------+-------------------+ I also want to start a new tmux session from the same command so I can close everything easily - those celeryd's don't reload automatically :( You'd usually run something like: tmux new-session "tmux splitw 'command1'; tmux splitw 'command3'; tmux splitw 'command3'; command4" but … -
Tmux scripting
I usually need to run more than 1 command for some project and got tired of searching through those putty windows for the session I want. So I thought of using a terminal multiplexer like Tmux. I'm using celery with two queues and I need to run this: manage.py celeryd -Q queueA manage.py celeryd -Q queueB manage.py celerycam -E I need celerycam because it will get those stats in djcelery up to date. It's also a good idea to tail the postgresql log - when you break your models or database in some cases Django isn't very helpful so this helps a lot: tail -f /var/log/postgresql/postgresql-8.4-main.log I use a wide screen so I want a layout like this: +------------------------------------+-------------------+ | | | | runserver | | | | celerycam | +------------------------------------+ | | | | | celeryd +-------------------+ | | | +------------------------------------+ | | | postgresql log | | celeryd | | | | | +------------------------------------+-------------------+ I also want to start a new tmux session from the same command so I can close everything easily - those celeryd's don't reload automatically :( You'd usually run something like: tmux new-session "tmux splitw 'command1'; tmux splitw 'command3'; tmux splitw 'command3'; command4" But … -
Profiles: Breaking Normalization
In the summer of 2010 I either saw this pattern or cooked it up myself. It is specific to the Django profiles system and helps me get around some of the limitations/features of django.contrib.auth. I like to do it on my own projects because it makes so many things (like performance) so much simpler. The idea is to replicate some of the fields and methods on the django.contrib.auth.model.User model in your user profile(s) objects. I tend to do this usually on the email , first_name , last_name fields and the get_full_name method. Sometimes I also do it on the username field, but then I also ensure that the username duplication is un-editable in any context.Sure, this breaks normalization, but the scale of this break is tiny. Duplicating four fields each with a max of 30 characters for a total of 120 characters per record is nothing in terms of data when you compare to avoiding the mess of doing lots of profile-to-user joins on very large data sets.One more thing, I've found that most users don't care about or for the division between their accounts and profiles. They are more than happy with a single form, and if they aren't, … -
Django Facebook 2.0 – Integrating Facebook
Django Facebook 2.0 – Integrating Facebook. Weils im Moment interessant ist (jaja, ich weiss, alles macht G+, aber man soll ja antizyklisch handeln), hier ein Link zu einer Django-Library mit der man Open Graph Apps für Facebook bauen kann. Könnte gerade zusammen mit der neuen Timeline von Facebook wieder interessant werden. Und G+? Naja, solange die nur armselige Spar-APIs liefern, ist das für Bastler schlichtweg uninteressant. -
DjangoCon US 2011 Slides
The slides (and video) for my talk at DjangoCon US this year are now up. You can find the slides here, and the video is available on the DjangoCon blip.tv account.