Showing 1 - 20 of 85 items. (Page 1 of 5)
Caktus Blog » Archive » Testing Django Views for Concurrency Issues
Always wondered about an easy way to test threading and concurrency issues. This post shows a decorator you can add to your views to simulate N number of threads.
Django Advent
The site Idan Gazit and I worked on that showcases upcoming features of the next Django release. Built with new-ish technologies like the upcoming Django release, HTML5, and CSS3 -- it was a fun playground for us. All articles are also published in an accompanying GitHub repository under a BSD license. We plan to continue the tradition for future Django releases.
Using Vim and Snipmate with Django
Not long ago I found the SnipMate plugin for Vim, which implements some of TextMate's snippets features in Vim. A snippet is a piece of often-typed text that you can insert into your document using a trigger word followed by a tab.
I didn't find any Django snippets ...
django-safeform
CSRF protection for Django implemented at the form level - no middleware required.
NASA NEBULA | Services | Services - Overview
Nebula, NASA's cloud computing platform, uses Django. Following the list of open source projects being used here leads to some great and interesting results.
EveryBlock source code released / The EveryBlock Blog
Source code for Everyblock has been released. This is the Knight Foundation grant given to Adrian Holovaty, et al. and built on Django and Python. I'll be spending time reading the source.
django-tinymce - Google Code
A django forms widget with support for languages, spell checking, and file browsing. Nice!
korpios's bulbs at master - GitHub
A collection of interesting code, mostly Django related, used by The Onion.
Django and Relativity Updated
Currently it's the season of EuroDjangoCon and I'm reading various presentations. One interesting thing I'm seeing is that many people are using relative paths in their settings.py file but in different ways. (For reference, see Django and Relativity). So far I've seen:
-
os.path.dirname ...
Add Full-Text Search to your Django project with Whoosh
A nice overview of adding the new Whoosh full-text search engine to a Django project using signals to trigger a re-indexing.
Django snippets: Twitter oAuth example
A Twitter OAuth example.
Tutorial — Django Solr v0.1 documentation
A tutorial on setting up Solr with Django using the django-solr-search project.
Incredibly useful SSH flag
Eric Holscher demonstrates the -t flag to SSH and how it can be used to set Python paths or the DJANGO_SETTINGS_MODULE environment variable on remote machines. A pretty handy trick.
Full-text searching in Django with PostgreSQL and tsearch2
A complete run down on setting up search with Django using PostgreSQL and tsearch2.
Django | Aggregation | Django Documentation
Django Aggregates have landed in Django. The documentation looks pretty good. People have been waiting for this for a long time. It's great to see such a solid implementation.
Recursion in Django templates | the blog
I've been writing hierarchical navigation menus and such in Python because I didn't think this was possible. Nice to know that if you want recursion, this is an option.
Testing Emails with Django
Django ticket #8638 titled, "Provide setting to disable e-mail sending", caught my eye as an interesting item to look into. As I looked into it, however, I came up with a pretty simple way to set up testing that involves some settings.py changes and about 4 lines of Python ...
A Django Management Command for Amazon S3
The Django Commands Extension project, started by Michael Trier, provides some excellent general purpose management commands to your Django projects. Ever since I first found the project I've kept it in the back of my mind that if I ever wrote a useful custom management command, I should contribute ...
Presenting django-recommender
This brings concepts (and implementation) from the great book, "Programming Collective Intelligence" to Django and provides ways to recommend items based on other user's. Nicely done.
Sending HTML emails to multiple subscribers via Django
I'm going to need this in an upcoming project. Good optimization tips on sending mass emails from Django (e.g. newsletters).