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 –. . .
Category: Django
- 1
- 2
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.. . .
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. . .
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. . .
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.. . .
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. . .
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. . .
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. . .
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. . .
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. . .
- 1
- 2
