Last November 10th and 11st we enjoyed the first Python Conference in Uruguay. The event was developed by the Python community in Uruguay as a result of the great success of the PyDay that took place in August 2011. In the event participated several speakers from Uruguay, Argentina, Brasil and Denmark with talks ranging from Biopython, Machine Learning to […]
Category: Web Frameworks
Python web frameworks
Generating image thumbnails with django-thumbnail-works.
Uploading images to our Django application can be as easy as adding an ImageField to our model. However, ImageField falls short in one key aspect, thumbnails. Usually when uploading images, we want to create smaller versions for them, for using in for example, galleries or previews. This however, has to be done manually using the appropriate imaging […]
Django Hello
Django doesn’t really need a hello world style introduction, its documentation speaks for itself. But this is what “Hello, world!” in Django looks like to me. I hate boilerplate and I love reducing software down to its core components; just enough to start the server. setup.py: from setuptools import setup setup( name=’hello’, ) requirements.txt: Django==1.4.1 […]
A Django Administration interface for non staff users
A while back I had a Django application in which I needed registered users able to view, create, update and delete objects in my system. These objects were instances of only a subset of all the Django models.Model subclasses I had defined in the models.py file of my application. You may find this problem very […]
The GPL vs. The MIT License: Which License To Use
A great many developers, myself included, believe that it is important to spend at least some time contributing to open-source software projects. These projects will hopefully be licensed (if you haven’t got a license on your open-source project, you’re doing it wrong), to ensure that your contributions are used in the way you (or the […]
Building a Minimalist Blog in Python (or, How I Learned to Stop Worrying and Love Web Development).
As of today, I have taken my final examination as an undergraduate student of Physics. With my graduate software engineering job beginning in September, I am one graduation ceremony away from being a Software Engineer instead of a Physics Student. Despite the fact that the world needs another programming/tech blog like a hole in the […]
Django – Adding CAPTCHA validation to your forms
Recently we implemented a “Forgot your password?” feature in one of our django sites and wanted to protect the mechanism so our users wouldn’t get spammy messages from our servers. As much as we may hate it, forms in our sites usually act as spambots magnets. We need some kind of protection and CAPTCHAs usually […]
Get user data using django-social-auth
Recently we had to add support for social networks login to an application we are developing and we chose django-social-auth to work with. It is a well documented and easy to use django application for authentication. But we wanted to do more than just authenticating the user, we wanted to get extra data like the […]
New Vanity Release
This release features the ability to display per package download statistics. With all the Python stats goodness going on recently, I got inspired to make a new vanity release. This release features the ability to display per package download statistics via the `-v` or `–verbose` command line argument. Here are some of my favorite results. […]
Introducing pythonpackages.com
The website for Python egoists™ I have this overwhelming desire to know how many times my favorite Python packages have been downloaded. Don’t you? If so, look no further than pythonpackages.com. Count downloads Where you can enter a package like Django and find out the number of downloads. Count favorites Or click on Count favorites […]
Plone: First Class Python Citizen
The Plone community and software fit nicely within the larger Python ecosystem. Here’s why. For almost as long as I have been involved in the Plone project, I’ve been interested in Plone’s role in the Python ecosystem. Today as I look across the current landscape, I’m proud to announce a new milestone the Plone community […]
Pillow: One Year Later
For anyone unfamiliar with Pillow, it is the friendly PIL fork: a fork of PIL that aims to remain a good citizen in the PIL community through its actions. Warm and fluffy history Pillow 1.0 was released on 2010-07-31, a little over a year later came Pillow 1.7.5 which features: Many packaging fixes (mostly to […]
Vagrant, Puppet and Mozilla, Oh my
This post is only loosely Python related and not at all Plone related. This post is only loosely Python related and not at all Plone related, but I thought folks might enjoy hearing about Vagrant and Puppet because these tools may help you do your Plone and Python jobs better. For the past couple weeks […]
Mozilla and PyPI
VM setup for kitsune The last time I wrote about PyPI some folks mistook the subject to be PyPy, so let me be clear: this article is about the Python Packaging Index. I recently began doing some volunteer work for Mozilla[1], working on a virtual machine setup to make kitsune development easier (kitsune is the […]
Dealing with the Python Import Blackbox
Turns out, this does not work reliably, in fact it will only work when packages are involved. I originally wrote the core for Flask extensions and it appeared to work, but I never verified that it works without extensions being involved. And in fact the module cleanup breaks it. Apparently Python does clean it up […]