Python Programming
Python Programming RSS feed-
Favorites Plugin for Gedit 3
Check out my new Favorites Plugin for Gedit 3.
-
Writing Plugins for gedit 3 with Python
'This is a guide to programming plugins for gedit 3, the default text editor for GNOME 3. gedit 3 uses the Libpeas GObject plugin system and the plugins can be written using C or Python. This guide will only cover writing plugins with Python.
Some of the information I provide is also found in the Python Plugin How To for Gedit found on live.gnome.org. However, I hope to provide a different approach to presenting the information and add some additional insights.
-
"Hello World" in Python with GTK+ 3
Playing around with the newly released GTK+ 3.0 in Python, I thought I would share this simple "Hello World" code which uses the new Gtk.Application object.
-
Django Authentication using an Email Address
The Django authentication system provided in django.contrib.auth requires the end user to authenticate themselves using a username and password. However, it is often desireable to allow users to log in using an email address rather than a username. There are a few different ways to accomplish this and a lot of discussion on the topic.
In this approach, I use a custom authentication backend to authenticate a user based on his or her email address, I hide the username from the end user, I generate a random username for the user when creating an account, and I manually add a unique index to the email column in the database (this is a bit of a "hack" and I'd love to hear suggestions in the comments).
-
Django Dynamically Generated Images with Cairo
It is fairly simple to dynamically generate images in your Django views using the Cairo 2D graphics library. The simple example generates an image "on-the-fly" in a Django view.



