Commit Graph

10 Commits

Author SHA1 Message Date
Dan McGee
97d1e4164b Connect post_save signals where they will always be triggered
We need to do this in the models.py files, otherwise the post_save signal
might not be connected right away on launch of the application. Move them
over there, add a dispatch_uid so it only gets hooked up once, and do some
other function moving around so we don't have circular imports.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-10-13 18:11:28 -05:00
Dan McGee
0c65360e6c Add ability to clear a cached function result
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-10-13 18:10:55 -05:00
Dan McGee
2016a9d6f7 Move import to top level
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-10-07 19:45:09 -05:00
Dan McGee
6b4c8e63b3 Make the cache_function key a bit more descriptive
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-07-10 16:23:36 -05:00
Dan McGee
8ba6ad8521 Add utility cache_function
This allows caching the results of an arbitrary function and its arguments
in the Django-managed cache, e.g. memcached in production.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-06-21 00:50:19 -05:00
Dusty Phillips
5acf6c46f2 separate copyrighted middleware from my additions 2008-10-11 19:52:51 -04:00
Dusty Phillips
f260843deb use RequestContext because its standard 2008-10-10 18:51:21 -04:00
Dusty Phillips
92ae5b3f0b need better than ids for options 2008-10-07 14:53:56 -04:00
Dusty Phillips
4fd05e721e drop a bunch of stuff not necessary for django 1.0 2008-09-16 21:12:50 -04:00
eliott
9b7b512254 Moved models around 2008-03-08 00:13:41 -08:00