Category: Django

Page:  
  • 1
  • 2
Oct
17

A Collection of Handy Django Authentication Backends

This blog entry desribes three Django Authenticaon backends you can use instead of the default “django.contrib.auth.backends.ModelBackend”. Below is a brief description of each. EmailBackend –. . .

Aug
25

Get the Latest Object or a 404 in Django : get_latest_object_or_404

The get_object_or_404 is a handy Django shortcut. It keeps my views shorter. In my case however, I had the need to get the latest object.. . .

Jul
28

Fun with Framingham

Hot off the presses is an open source implementation of the Framingham 10 Year Heart Attack Risk Calculator. This software package consists of a command-line. . .

Oct
14

Fetching Django’s Model’s ‘verbose_name’ and/or Form’s ‘label’ Attribute

Problem: You want to display some information in a database record in Django, but you also want to display the field’s verbbose name.  In other. . .

Jul
20

Django Production Deployment: How to Make Apache2 mod_wsgi and virtualenv for Python Play Nice

Problem: You are a good little Python developer and you use virtualenv in your Python development.  If you aren’t using virtualenv you’re doing it wrong.. . .

Mar
29

How to Create a Geospatial Query with maxDistance in MongoDB using Python

My company (Videntity) has been providing support to the Earth Institute (Columbia University). One of the tasks is to build a geospatial web service for. . .

Mar
13

Postgresql Setup on Ubuntu 10.10

Here is a little cheat sheet for getting Postgress setup on Ubuntu and creating an initial database and dtabase user.  this will work if you. . .

Nov
23

Serving Django Admin Static Media Files with Apache WSGI on Ubuntu

Here is a quick and simple configuration code recipe to serve the admin static files in a production environment using modWSGI and Apache 2. Modify. . .

Sep
15

West Wireless Health 2.0 Developer Challenge: Recap and Next Steps

I first planned to write this article right after my submission, but then when I was told I’d been selected as the winner so I. . .

Apr
25

How to Ignore Compiled Python (.pyc files) and other Files in Subversion

1.) Create the file ‘.svnignore’ in you projects root directory. Use your favourite text editor: nano, vi, vim, emacs, etc to create and edit the. . .

Page:  
  • 1
  • 2