django-devserver
django-devserver copied to clipboard
A drop-in replacement for Django's runserver.
The Django development server [is multithreaded by default](https://docs.djangoproject.com/en/dev/ref/django-admin/#django-admin-option---nothreading). Werkzeug is not, but you can enable it. Django-devserver should mimic the default Django behavior and pass `threading=True` to [run_simple](http://werkzeug.pocoo.org/docs/0.10/serving/#werkzeug.serving.run_simple) (unless `--nothreading`...
Fixes #110 by taking the code in `http.py` and using Werkzeug's version of `WSGIRequestHandler`, and adding some Werkzeug-specific changes. This file only gets loaded when `--werkzeug` is used.
When I run without `--werkzeug`, I see something like `(time: 1.68s; sql: 10ms (3q))`, which is really useful. After I switched to Werkzeug, it's no longer there. Is there any...
sqlparse place each value in `IN` clause into separate line making queries generated by prefetch_related and batch_select unreadable. This patch limits `IN` clause size to 5 values.
This allows you to profile Solr queries and, optionally, see the exact query being executed
A exception is thrown (ValueError: None is not in list) if you have a text param that contains a sql keyword, module/sql line 76: message = sqlparse.format(message, reindent=True, keyword_case='upper') because...
a module similar to SQLSummaryModule but to output stats for queries to MongoDB. depends on django-debug-toolbar-mongo https://github.com/hmarr/django-debug-toolbar-mongo
links to documentation of optional packages
#89 To use logging handler, added DEVSERVER_LOG_HANDLER setting
sql = u'SELECT (strftime(\'%Y%W\', datetime)) AS "week", AVG("core_expense"."amount") AS "average", SUM("core_expense"."amount") AS "total" FROM "core_expense" GROUP BY strftime(\'%Y%W\', datetime), (strftime(\'%Y%W\', datetime)) ORDER BY "week" ASC' params = () When we...