[Dev-flock] r228 - in huginmunin/trunk/web: . src src/middleware
Dan Ring
dan at thoughtandmemory.org
Thu Sep 27 23:57:08 EDT 2007
r239 at insignificant: dan | 2007-09-27 23:52:52 -0400
Committing middleware (both from the web, not me).
The SQLLogMiddleware will output all queries executed by the app during a request directly to the page being rendered. To enable it, uncomment "DEBUG_SQL" in settings.py.
The threadlocals.py is a hack to provide a get_current_user() method in the models, since the Django creators refuse to break abstraction.
Added:
huginmunin/trunk/web/src/middleware/
huginmunin/trunk/web/src/middleware/SQLLogMiddleware.py
huginmunin/trunk/web/src/middleware/__init__.py
huginmunin/trunk/web/src/middleware/threadlocals.py
Modified:
huginmunin/trunk/web/
More information about the Dev-flock
mailing list