Django community: Community blog posts RSS
This page, updated regularly, aggregates Community blog posts from the Django community.
-
Merging forms from django-formwizard
On a recent project, I was making use of the django-formwizard app and needed to be able to pull out any one of the fields from the series of forms. On the final step of one of the sample apps, it is suggested that you do something like: form_list = [form.cleaned_data for form in form_list]Continue Reading -
DjangoCanvas - Finally prototype goes live
I have spent quite some time on this project, thought it was time to release it as a prototype and see what people thought about it. URL to the project is http://www.djangocanvas.com The purpose of the project is to create a base project on the fly given a list of selected packages, inspired by Ninite. I guess there are loads of features I could implement in order to increase the utility of it, here are a few:Package version specificationSaving/Bookmarking of created projectsSupport different project layoutsSupport other Django versions (currently built for Dajgno 1.3)More configuration optionsIf you have any suggestion I would be really happy to hear them, as I would love to see this project finished and being useful. -
django-lastfm 1.0.1
Django-lastfm is a small Django app that allows you to embed your charts or recently listened tracks from Last.fm into your website. You can see the widget in action in the sidebar of this website. Version 1.0.1 includes a few minor bugfixes and a more comprehensive test coverage. You can find django-lastfm in the Cheese Shop or at Bitbucket. -
django-lastfm 1.0.1
Django-lastfm is a small Django app that allows you to embed your charts or recently listened tracks from Last.fm into your website. You can see the widget in action in the sidebar of this website. Version 1.0.1 includes a few minor bugfixes and a more comprehensive test coverage. You can find django-lastfm in the Cheese Shop or at Bitbucket. -
A small update on django-completion
Just a quick heads-up to anyone out there using django-completion, I've released a couple important updates this weekend and you may be interested in updating your checkouts. These changes are purely additive, so don't worry about having to update your own code. There are three important updates: Bug: the (experimental) Redis backend could fail to return results under certain conditions and, if data were removed frequently, leak memory all over the place Bug: partial titles generated for the Redis and Database backends were too restrictive, i.e. "testing python code" would not complete on "python" unless the AUTOCOMPLETE_MAX_WORDS setting was 2 (or 1) Feature: it is now possible to restrict suggestions to certain models by passing in a list of acceptable models to the suggest() method -
Django settings template
A better template for Django settings, ready to use. -
Django's Template Language is Turing Complete
-
Django-extended-choices, l’app qui te donne le choix (mais pas la date)
J'avais plein d'app possible à présenter pour ce billet du mois d'avril. Mais en réfléchissant, je me suis dit que la meilleure app possible à présenter ce moi-si c'était celle qui a été libéré pendant les DjangoCongs à savoir Django-extended-choices. Et en plus, ce qui est bien, c'est que comme c'est une toute petite app, ... -
Release 1.0.4
-
Django-SmartAgent
Dajngo-smartagent identifies Browser and OS name, version and characteristics. It achieves this surprisingly fast (<1ms) compared to other libraries with similar qualities. Some of characteristics identifiable are:if client is a mobile devicemax CSS version is supportedif client is a web crawlerif a client is considered alpha/betaOS and OS versionAlso popped in are some useful features for Django sites that want to support mobile versions.To install it you can either use pip/easy_install pip install django-smartagent #or easy_install django-smartagent or alternatively from repository git git+https://jamespacileo@github.com/jamespacileo/django-smartagent.git#egg=django-smartagent Code and documetnation is at https://github.com/jamespacileo/django-smartagent. Hope this helps a few peeps out. :) -
Django: quick templating with CleverCSS
CleverCSS is one of the alternatives for SASS CSS templating for Django. The markup language is a great way of replacing and generating ordinary and complex CSS stylesheets on the fly. In this article we will delve into how CleverCSS can exponentially speed up your Django projects and how we can start using this tool in a few easy steps. Tutorial Details Program: Django, CleverCSS, django-clevercss Difficulty: Intermediate Estimated Completion Time: 30 minutes What is CleverCSS? CleverCSS is a powerful markup language for the swift implementation of CSS stylesheets. The design of the markup is similar to that of SASS, so if you are already familar with the language this tutorial will be a breeze. CleverCSS drammatically reduces the time it takes to write up CSS rules mainly by: Decreasing repetitive punctuation such as semicolons and curly brackets Nesting rules Defining variables Enabling use of expressions This is an example of CleverCSS markup: div.article: width: 300px h2.article-title: color: #111 font-size: 16px &:hover: color: #222 div.body: font-size: 12px This is the equivalent CSS code: div.article{ width: 300px; } div.article h2.article-title{ color: #111; font-size: 16px; } div.article h2.article-title:hover{ color: #222; } div.article div.body{ font-size: 12px; } As you can see the first … -
Finally. Created myself a blog.
Hi folks!I'm quite excited as this is my first proper blog, and I am planning on writing quite often. Will look forward to see how this goes :) -
Organizing Django settings
I think it’s not cool that I’m not blogging. I decided to write small posts about several simple things, techniques and conventions I use often. Configuration is hard to get right, and I don’t think Django’s settings is the best way to configure a web app. The most common problem with Django’s settings is a desire to customize them for some particular environments, e.g. have a different DATABASE setting on development and production machines. And on of the most common solutions is simple and stupid: # settings.py as is, the standard Django's from django-admin.py startprojects DEBUG = True TEMPLATE_DEBUG = True # ... all this kind of stuff, and in the end: try: from local_settings import * # this is wrong. don't do this! except ImportError: pass The main reason to hate it when somebody does it is that you can’t use any value from settings.py in local_settings.py. It’s not cool. I want to be able to do things like, you know: INSTALLED_APPS += ('gunicorn',) No, it’s not possible. And don’t try from settings import INSTALLED_APPS, it won’t work. What to do about it? I really think of myself as a smart person, but the first time I decided to … -
Django Admin Override Save for Model
Sometimes it's nice to be able to add custom code to the save method of objects in the Django Admin. So, when editing an object on the Admin object detail page (change form), adding the following method override to your ModelAdmin in admin.py will allow you to add custom code to the save function. In admin.py: class MyModelAdmin(admin.ModelAdmin): def save_model(self, request, obj, form, change): # custom stuff here obj.save()This is documented in the Django Docs, but I found it particularly useful. -
Ken Cochrane | Blog | Deploying my Django application to DotCloud
-
Lista de países con django-countries
Es probable que muchos de nuestros lectores se hayan visto en la necesidad de agregar a su sitio/aplicación web una lista de países con sus respectivas ciudades. ¿Esto es posible sin necesidad de emplear mucho tiempo?. La respuesta es SI, gracias a django-countries y la magia de Django es posible hacerlo en forma práctica y elegante, usando el estándar ISO 3166-1 para la representación de países. -
Work for me!
Are you looking for an awesome web development gig? Then you should come work for me at Revsys. We're hiring a full-time Python/Django developer. Update: The position's been filled. That said, we're continuing to expand, so if you're an awesome Python/Django developer and want to work with us, get in touch anyway. For the right person we'd create a position. Revsys is a consulting and services business built around Django; we specialize in scalability and real-world deployment concerns. In practice this means we get to see all sorts of awesome, atypical, large-scale uses of Django. Our clients include some of the largest users of Python and Django in the world. Why should you work for us? I clearly think Revsys is an awesome place to work. Here are just a few reasons why you might, too: We're a small, scrappy startup, but we're 100% self-financed, so there's no investors to deal with. We're a company built and run by techies, and we've carefully optimized our business so that we get to work on the most interesting types of technical problems out there. The work's incredibly exciting -- never a dull day. We pick our clients very carefully. In fact, we're … -
We won first place at Startup Camp LA!
On a whim we (me and audreyr) decided to try out Startup Camp LA organized by Semantic Seed. This is one of those Silicon Vally style competitions to launch a minimally viable product along with a business plan and marketing pitch in the course of a weekend. We thought it would be a good excuse to hack on a project we've been cooking up in our heads over a year. So we booked our tickets via meetup.com and showed up at the new Nextspace Los Angeles location.The organizers did a really good great job providing space, food, and lots of useful advice. I look forward to the next event that they run in the area.Startup Camp LA PitchesThe first pitch was on Confidox, an exclusive recruiting site for lawyers with a focus on clean design, security, and good use of email/sms. The presenter, a professional attorney with great oratory skills, had mockups and a business plan ready to go.Audrey gave our pitch, which is a site for recruiting developers that is created and maintained by developers. Developers are treated with dignity and respect, and not as replaceable components. We've talked to people on-and-off about this for over a year, and thought this … -
Work for me!
Are you looking for an awesome web development gig? Then you should come work for me at Revsys. We’re hiring a full-time Python/Django developer. Update: The position’s been filled. That said, we’re continuing to expand, so if you’re an awesome Python/Django developer and want to work with us, get in touch anyway. For the right person we’d create a position. Revsys is a consulting and services business built around Django; we specialize in scalability and real-world deployment concerns. -
Geany, editor per a programació
Aquestes festes he estat mirant-me l'editor Geany per veure com responia a les meves necessitats de tenir un editor per a programació fonamentalment Python i Django que fos a la vegada potent i que tingués baixos consums de memòria. En un editor per a programació crec que és important seguir el principi de Pareto o regla del 80-20, és a dir, vull un editor que amb el 20% de comun de recursos tengui el 80% de les funcionalitats d'un IDE com Eclipse+Pydev o PyCharm per exemple. Avui en dia el meu editor de capçalera és Vim/Gvim totalment personalitzat amb la configuració que podeu trobar a trespams-vim, crec que és una bona configuració, però tot i la potència de Vim tanmateix no faig servir ni un 20% de les possibilitats que m'ofereix l'editor. El que sí que crec que és important és dominar-lo, ja que de tant en tant convé editar via ssh i saber fer anar vim amb condicions és un avantatge. La cosa doncs és que vaig decidir donar una altra ullada a Geany, ja que vaig veure a la web que havien llançat una nova versió, la 0.2 més moderna que la que tenia ja instal·lada a Ubuntu. … -
Introducing django-lazysignup
django-lazysignup is a package designed to allow users to interact with a site as if they were authenticated users, but without signing up. At any time, they can convert their temporary user account to a real user account. Read more about it below. -
Introducing django-lazysignup
django-lazysignup is a Django application that was partly inspired by a talk that Simon Willison gave at EuroPython a few years back (perhaps 2008, or 2009?) and partly to scratch an itch I had with an application I was building at the time. The problem it tries to solve is that making users sign up with a web site just to try out your app is quite a high barrier - potential users just bounce right off that registration form. I'd seen some efforts to solve this problem before. Most seemed to involve stashing the data for some predetermined part of the website somewhere (often in the session) and then reconstituting it into real application data when the user eventually bites the bullet and signed up. This worked OK, but you had to write it anew for every web site, as clearly the data you'd want to store would change from site to site. You also ended up effectively developing a miniature version of your site that would work with some limited data set. This didn't really seem good enough. So I started wondering - what if we just created a real user for every person who visited the site? … -
Introducing django-lazysignup
django-lazysignup is a Django application that was partly inspired by a talk that Simon Willison gave at EuroPython a few years back (perhaps 2008, or 2009?) and partly to scratch an itch I had with an application I was building at the time. The problem it tries to solve is that making users sign up with a web site just to try out your app is quite a high barrier - potential users just bounce right off that registration form. I'd seen some efforts to solve this problem before. Most seemed to involve stashing the data for some predetermined part of the website somewhere (often in the session) and then reconstituting it into real application data when the user eventually bites the bullet and signed up. This worked OK, but you had to write it anew for every web site, as clearly the data you'd want to store would change from site to site. You also ended up effectively developing a miniature version of your site that would work with some limited data set. This didn't really seem good enough. So I started wondering - what if we just created a real user for every person who visited the site? … -
Introducing django-lazysignup
django-lazysignup is a Django application that was partly inspired by a talk that Simon Willison gave at EuroPython a few years back (perhaps 2008, or 2009?) and partly to scratch an itch I had with an application I was building at the time. The problem it tries to solve is that making users sign up with a web site just to try out your app is quite a high barrier - potential users just bounce right off that registration form. I'd seen some efforts to solve this problem before. Most seemed to involve stashing the data for some predetermined part of the website somewhere (often in the session) and then reconstituting it into real application data when the user eventually bites the bullet and signed up. This worked OK, but you had to write it anew for every web site, as clearly the data you'd want to store would change from site to site. You also ended up effectively developing a miniature version of your site that would work with some limited data set. This didn't really seem good enough. So I started wondering - what if we just created a real user for every person who visited the site? … -
longjmp() 2011 - Impromptu Party
Lawrence has been having a bunch of downtown block parties lately, which are always great fun. The last couple of days the Kansas Relays have been going on and the long jump event was setup directly outside our office windows. Since we had such a great view we quickly through together a little party and invited all of our geeky friends to come watch, we had a pretty good turn out (free beer works apparently). Here are some photos I took from our office. You can find more professional quality photos of the event here. Thanks to everyone for coming out!