Django community: Community blog posts RSS
This page, updated regularly, aggregates Community blog posts from the Django community.
-
May 12th, 2012 LA Open Source Recap
On May 12th, 2012, over 50 Python, C++, Ruby, PHP, JavaScript, and Node.js developers arrived to code on a variety of projects. It was awesome! Tons of open source projects saw contributions, and people across languages and frameworks worked together. Event Background Less then two weeks before May 12, a bunch of us Los Angeles area Python developers were hanging out and wishing we had a local sprint to attend that was just about developers working on open source projects. It was then that Audrey Roy and I, along with an army of hardworking volunteers, decided to stop wishing and make it happen on May 12th. We lined up a venue, contacted awesome sponsors Spire.io, Heroku, Github, Cars.com, and Cartwheel Academy. As we did that, we also invited people from the many Los Angeles programming communities in Los Angeles to join us. The result of everyone's hard work? We filled up all sixty spots in less than 96 hours! Some of the projects worked on included: Salt Stack: https://github.com/saltstack/salt A node.js-powered streaming terminal, allowing for shared input at a terminal among several participants. A JavaScript powered astrolabe. Settlers of Catan analytics in JavaScript. OpenFrameworks, a cross-platform toolkit for creative coding … -
Lizard sprint week
-
Announcing our final keynote speaker: Karen Tracey
I'm thrilled to announce that our final keynote speaker for DjangoCon Europe 2012 will be Karen Tracey.Karen has been using Django since 2006 and is a core developer of Django now. She loves crosswords and constructs her own for several newspapers, including the New York Times, and it is her work on crosswords that initially brought her to Django, as she was seeking a frontend for her database of crosswords. She also wrote the book Django Testing and Debugging and works for Caktus. Besides her work on and with Django, Karen enjoys volunteering for a cat rescue organization dedicated to improving the lives and reducing the population of homeless cats in the Triangle area. -
Release 0.6.17
We just released LFS 0.6.17. This is a yet another bugfix release of the 0.6 branch. Changes Bugfix: fixed update cart after login for configurable products; #issue gh #8 Bugfix: make PayPal callbacks work with CSRF protection; issue #197 (Dmitry Chaplinsky) Bugfix: Fixed wrong arguments in calls to voucher API (Pavel Zagrebelin) Bugfix: catch wrong floats in calculate_packing Information You can find more information and help on following locations: Documentation on PyPI Demo Releases on PyPI Source code on bitbucket.org and github. Google Group lfsproject on Twitter IRC LFS moved to github See here for more. LFS on EuroPython 2012 We are sprinting on this year's EuroPython in Florence. Don't hesitate to join us, see https://ep2012.europython.eu/p3/sprints/ and LFS sprint topics for more. -
Release 0.7.4
We just released LFS 0.7.4. This is a yet another bugfix release of the 0.7 branch. Changes Improved shipping and payment method management: display form errors; using ajax; issue #151. Bugfix: send order_paid signal after successful callback arrived from PayPal; issue #198. Bugfix: make PayPal callbacks work with csrf protection; issue #197. Bugfix: catch wrong floats in calculate_packing. Bugfix: fixed update cart after login for configurable products; #issue gh #8 Bugfix: cleaned up parameters and arguments of PriceCalculator. Bugfix: don't pass request to PriceCalculator base_packing_price methods. Bugfix: fixed calculation of package prices for configurable products. Bugfix: Fixed wrong arguments in calls to voucher API. (Pavel Zagrebelin) Information You can find more information and help on following locations: Documentation on PyPI Demo Releases on PyPI Source code on bitbucket.org and github. Google Group lfsproject on Twitter IRC LFS moved to github See here for more. LFS on EuroPython 2012 We are sprinting on this year's EuroPython in Florence. Don't hesitate to join us, see https://ep2012.europython.eu/p3/sprints/ and LFS sprint topics for more. -
Nous projectes i nous reptes
Aquestes darreres setmanes, mesos fins i tot, han estat força intenses. Amb projectes que han duit moltes hores i que al final han sortit. Rasec de Guillermo i companyia va representar posar en marxa una aplicació que va duu més de tres mesos de feina, però amb uns resultats inicials més que encoratjadors. Pel nostre client de referència en el món turístic Fiesta Hotel Group hem posat en marxa tres noves webs en poc temps: http://www.ushuaiabeachhotel.com/. Unes fotografies realment precioses que fan ganes d'anar-hi. Sa Talaia Boutique Villa. En la mateixa línia que l'anterior i amb la idea de donar aquesta sensació de proximitat i unió entre els dos conceptes d'hotel. Hotel Mallorca Rocks Com concepte d'hotel-concert, que tans bona acollida ha tingut dins Palma com a alternativa al sol i platja tradicional. Tot això amb Python i Django com podreu suposar. Pel tipus de feina en que ens anam especialitzant cada projecte és un poc diferent. Al nostre voltant hi ha empreses que se dediquen a "fer planes web" que duen molts anys i quan veus el que han fet te n'adones que han anat repetint el mateix patró, el mateix disseny una i una altra vegada. És una … -
Reasons to love Django, part x of y
I needed to add a boolean field to a model. For many web apps, this typically involves: modifying the model layer, so that the field becomes available as an attribute on retrieved objects, and can be queried against etc. creating a database migration script that can be run immediately on the development box, and later for staging and production. running the migration against the development DB. updating any admin screens for editing the field. checking the changes and scripts into source control. deploying - including pushing source code and running migration scripts etc. Using Django, from a cold start (no editor/IDE open), this just took me 1 minute 45 seconds of work for steps 1 - 5, and an additional 45 seconds waiting for step 6, total 2 minutes 30 seconds, and I wasn't rushing. Step 1 is a one line code addition. Pretty much everything else can and should be generated automatically. Step 2 is taken care of by a one line command using South, as is step 3 and the database part of step 6 (which is run de-rigueur from my deployment scripts). Step 4 is taken care of by Django's admin, which introspects the model and generates … -
Using environment variables on Gondor
A trouble when using git/hg-based push to application servers is that everything has to be in the repo. So no more production_settings.py etc on the production server. This is easly solved by using the environment and let it provide the variables to us. On Gondor this is currently undocumented but you can always dig through the (source)[https://github.com/eldarion/gondor-client/blob/master/gondor/main.py] for the client to figure it out;-) So a quick chat in the #gondor channel at Freenode helped me with... -
Using environment variables on Gondor
A trouble when using git/hg-based push to application servers is that everything has to be in the repo. So no more production_settings.py etc on the production server. This is easly solved by using the environment and let it provide the variables to us. On Gondor this is currently undocumented but you can always dig through the (source)[https://github.com/eldarion/gondor-client/blob/master/gondor/main.py] for the client to figure it out;-) So a quick chat in the #gondor channel at Freenode helped me with... -
Export to CSV using the Django ORM
Django apps tend to be pretty data heavy. One common task is exporting sets of data to csv (comma separated values), a plain text file which can be loaded up in a spreadsheet and manipulated further. The first thing to do is make sure you know about the Python csv library. If you are exporting all of you data with respect to one model, here is a quick way to do it and keep your code cleaner using values_list and the Django ORM query shorthand. Start by defining your export as a data structure. export_info = [ ("Role", "role__name"), ("Department", "department"), ("Last Name", "person__last_name"), ("First Name", "person__first_name"), ] The first item in the tuple is the row header and the second item is an ORM path to the value you want. It will be passed in to values_list. One quirk to note is if you have a relationship and you don't specify the field on the relationship are you interested in you will just get the id for the object. The model's unicode method isn't called. For a better idea here is what the models would look like in this example. class Position(models.Model): role = models.ForeignKey("Role") department = models.CharField(max_length=256) person … -
Export to CSV using the Django ORM
Django apps tend to be pretty data heavy. One common task is exporting sets of data to csv (comma separated values), a plain text file which can be loaded up in a spreadsheet and manipulated further. The first thing to do is make sure you know about the Python csv library. If you are exporting all of you data with respect to one model, here is a quick way to do it and keep your code cleaner using values_list and the Django ORM query shorthand. Start by defining your export as a data structure. export_info = [ ("Role", "role__name"), ("Department", "department"), ("Last Name", "person__last_name"), ("First Name", "person__first_name"), ] The first item in the tuple is the row header and the second item is an ORM path to the value you want. It will be passed in to values_list. One quirk to note is if you have a relationship and you don't specify the field on the relationship are you interested in you will just get the id for the object. The model's unicode method isn't called. For a better idea here is what the models would look like in this example. class Position(models.Model): role = models.ForeignKey("Role") department = models.CharField(max_length=256) person … -
10 reasons to go to DjangoCon Europe
You should go to DjangoCon Europe in lovely Zurich, Switzerland. Here are 10 reasons why: 1. Chocolate So much of what we like about chocolate comes from Switzerland. For example, Milk Chocolate was invented in Switzerland. 2. Keynote speaker: Jacob Kaplan-Moss Always a great speaker and fun to be around, he's one of the BDFL's of Django. 3. Cheese I grew up thinking that Swiss Cheese was just about holes. It's so much more. I can't wait to try fresh European cheese made by master craftsmen from the freshest ingredients. 4. Keynote speaker: Jessica McKellar In a word, Jessica is incredible. She's a Twisted core developer, PSF board member, part of the trio responsible for the gigantic Boston Python User Group's massive size explosion, and a talented speaker. She's used her incredible talents and skills to increase diversity in the community and generally help other people. 5. Breakfast Muesli was invented in Switzerland. I love Muesli. I was floored by how much better it was in New Zealand. I can't wait to try it in it's homeland. 6. Web Site The DjangoCon Europe site is crazy. I mean, look at all those animations! 7. Talks This is a single track … -
10 reasons to go to DjangoCon Europe
You should go to DjangoCon Europe in lovely Zurich, Switzerland. Here are 10 reasons why: 1. Chocolate So much of what we like about chocolate comes from Switzerland. For example, Milk Chocolate was invented in Switzerland. 2. Keynote speaker: Jacob Kaplan-Moss Always a great speaker and fun to be around, he's one of the BDFL's of Django. 3. Cheese I grew up thinking that Swiss Cheese was just about holes. It's so much more. I can't wait to try fresh European cheese made by master craftsmen from the freshest ingredients. 4. Keynote speaker: Jessica McKellar In a word, Jessica is incredible. She's a Twisted core developer, PSF board member, part of the trio responsible for the gigantic Boston Python User Group's massive size explosion, and a talented speaker. She's used her incredible talents and skills to increase diversity in the community and generally help other people. 5. Breakfast Muesli was invented in Switzerland. I love Muesli. I was floored by how much better it was in New Zealand. I can't wait to try it in it's homeland. 6. Web Site The DjangoCon Europe site is crazy. I mean, look at all those animations! 7. Talks This is a single track … -
Circular import errors
-
Installation and Use of Dajax and Dajaxice
Installation and Use of Dajax and DajaxiceI haven't posted anything on here for a while, but my other how-to posts about Django seem to have been useful to people, so I thought I'd put up some instructions for getting Dajax and Dajaxice (AJAX libraries for Django) to work.Hopefully the steps are pretty clear, but if you run into some unexpected troubles or have ideas for a better way to get the job done, please be sure to leave a comment.In addition to this guide, I would also recommend you read:http://docs.dajaxproject.com/dajaxice/installation.html1. Install Dajax and Dajaxice python packagesdownload dajax from here: https://github.com/jorgebastida/django-dajax/downloadsuncompress to a directorychange to that directory (i.e. cd django-dajax-0.8.4)install with the command 'sudo python setup.py install'do the above steps for dajaxice (find .tar.gz file at: https://github.com/jorgebastida/django-dajaxice/downloads) Note that you can also do this via the python package index. Don't even think about getting it via your operating systems' package repository, as it will most likely be out of date. Dajax isn't even up to version 1.0 yet and still has some bugs. You need to make sure you are using the very latest (but stable) version to be able to use it successfully.2. Get Dajax to work in your Django … -
Leaving ep.io, or the other way around maybe
The road of finding a good and solid Djano host never ends it seems, a while back [http://ep.io] announced they are shutting down.. The offer they had was by far the best on the market, a very solid wsgi/nginx-frontend, and PostgreSQL and Redis on top of that. They offered one free wsgi-instance and adding another was extremely cheap, like ~$10/month. I have tested many other django/python/wsgi hosting services and for some clients we are using... -
Leaving ep.io, or the other way around maybe
The road of finding a good and solid Djano host never ends it seems, a while back [http://ep.io] announced they are shutting down.. The offer they had was by far the best on the market, a very solid wsgi/nginx-frontend, and PostgreSQL and Redis on top of that. They offered one free wsgi-instance and adding another was extremely cheap, like ~$10/month. I have tested many other django/python/wsgi hosting services and for some clients we are using... -
Release 0.7.3
We just released LFS 0.7.3. This is a yet another bugfix release of the 0.7 branch. Changes Bugfix: update product view after images has beend changed; issue #200. Bugfix: fixed wrong label for e-mail field; issue #202. Bugfix: fixed pagination link. (Maciej Wi?niowski) Bugfix: fixed Product.get_product_tax method: added request to parameters; issue #199. Bugfix: fixed display of standard price within category products view. Bugfix: don't allow pages with same slug. Added: added CategoryProductPricesNetNode to lfs_tags. Added: added CategoryProductPricesNode to lfs_tags. Updated: cleaned up PriceCalculators. Information You can find more information and help on following locations: Documentation on PyPI Demo Releases on PyPI Source code on bitbucket.org and github. Google Group lfsproject on Twitter IRC LFS moved to github See here for more. LFS on EuroPython 2012 We are sprinting on this year's EuroPython in Florence. Don't hesitate to join us, see https://ep2012.europython.eu/p3/sprints/ and LFS sprint topics for more. -
Release 0.6.16
We just released LFS 0.6.16. This is a yet another bugfix release of the 0.6 branch. Changes Bugfix: fixed pagination within products tab of category management (Maciej Wi?niowski) Bugfix: fixed wrong label for e-mail field; issue #202. Bugfix: fixed update product view after images has beend changed; issue #200. Information You can find more information and help on following locations: Documentation on PyPI Demo Releases on PyPI Source code on bitbucket.org and github. Google Group lfsproject on Twitter IRC LFS moved to github See here for more. LFS on EuroPython 2012 We are sprinting on this year's EuroPython in Florence. Don't hesitate to join us, see https://ep2012.europython.eu/p3/sprints/ and LFS sprint topics for more. -
Django class based views - Index
L'altra dia un amic em va dir que li resultava complicat anar navegant pel conjunt d'articles de les Class Based Views de Django, així que el que he pensat és fer una mena d'índex amb aquest apunt i posar-ho a la portada. Django class based views (I) Django class based views (II) Django class based views (III) Django class based views (IV) Django class based views (V) - CRUD Django class based views (VI) - Lists Epíleg: Filtres i ordenacions 0 comentaris, 0 trackbacks (URL) Automatic translations of this post by Apertium -
Locale trouble with Django 1.4 on MacOSX
I just upgraded one of my Django projects to 1.4, I deleted the test database and made me a new one, but I ran into some trouble. When creating the superuser something went wrong and it all ended with an exception about some locale. Traceback: raceback (most recent call last): File "manage.py", line 10, in execute_from_command_line(sys.argv) File "/Users/peppe/Envs/snippets/lib/python2.7/site-packages/django/core/management/__init__.py", line 443, in execute_from_command_line utility.execute() File "/Users/peppe/Envs/snippets/lib/python2.7/site-packages/django/core/management/__init__.py", line... -
Locale trouble with Django 1.4 on MacOSX
I just upgraded one of my Django projects to 1.4, I deleted the test database and made me a new one, but I ran into some trouble. When creating the superuser something went wrong and it all ended with an exception about some locale. Traceback: raceback (most recent call last): File "manage.py", line 10, in execute_from_command_line(sys.argv) File "/Users/peppe/Envs/snippets/lib/python2.7/site-packages/django/core/management/__init__.py", line 443, in execute_from_command_line utility.execute() File "/Users/peppe/Envs/snippets/lib/python2.7/site-packages/django/core/management/__init__.py", line... -
Announcing our second keynote speaker: Jessica McKellar
I am really excited to announce our second keynote speaker for DjangoCon Europe 2012 - Jessica McKellar.Jessica is a kernel engineer from Cambridge, Massachusetts. She's a maintainer of several open source Python projects, most notably Twisted and OpenHatch. She's also working on a new edition of Twisted Networking Essentials for O'Reilly.On top of her open source contributions, she is also a Python Software Foundation board member and a crucial part in the Boston Python User Group, the largest Python user group in the world. With that group she runs the Boston Python Workshop, an introductory programming pipeline that has brought hundreds of women into the local Python community and is being replicated in cities across the US. -
LFS has been moved to github
LFS has been moved from bitbucket (mercurial) to github (git). The repositories on bitbucket will not be updated and deleted soon. The issue tracker will be moved asap. If you follow LFS on bitbucket and you are still interested in LFS, please move over to github. Why the move? We believe that git is the more powerful tool to develop LFS. Once converting, we took the opportunity to move to github (as all meta information would be lost anyway, even if we would change to git on bitbucket), because github rocks! After mentioning the plan to move, everybody seems to be pleased. Sorry, for any inconvenience. -
Networking
DjangoCon's all about networking, and I don't mean TCP packages and frame relays. I mean connecting with people. To make this easier, the guys at hyperweek have built a site for us: djangocon.hyperweek.comOur hyperweek site will be an excellent place for you to connect with other attendees and Djangonauts before, during and after the conference. If you can't make it to this years DjangoCon Europe, feel free to join too! For first-timers to DjangoCon, this site might make it easier for you to not feel too overwhelmed on Monday by connecting with some other attendees before the event.Whether you want some input on your talk idea, discuss things to do in Zurich, look for someone to have a jog with during the conference or just want to connect with other people, I hope hyperweek will help you with this.Please note that we will also do the sprint organizing through this portal. So if you're interested in joining a sprint or organizing a sprint, please check out the sprints page.If you have any issues with hyperweek, feel free to contact Raphaël Briner on hyperweek. Raphaël also promised us a mobile version to follow shortly, so stay tuned.