django-devserver
django-devserver copied to clipboard
A drop-in replacement for Django's runserver.
Previously string values were not quoted, causing sqlparse to interpret them as code. Any value which matched a SQL keyword would be capitalized and indented, causing garbled display of queries...
Not sure if 10 processes it too many/too few for a development server...
I think using logging handler which specified in settings.py is better way. So need new settings to specify handler_name. ex: ``` DEV_SERVER_LOG_HANDLER = 'handler_name' ```
File "/home/vagrant/env/lib/python2.6/site-packages/devserver/modules/sql.py", line 62, in execute `formatted_sql = sql % (params if isinstance(params, dict) else tuple(params))` UnicodeDecodeError: 'ascii' codec can't decode byte 0x8b in position 1: ordinal not in range(128)
Using python 2.5 , the time.py in utils will cause wrong time module imported. http://stackoverflow.com/questions/11568223/python-yet-another-attributeerror-module-object-has-no-attribute/11568680#11568680
Hey there, Found an error which is thrown due to the assumption that request.user.username will always exist in devserver.modules.request.SessionInfoModule. In my custom user model configuration I've replaced 'username' with 'email'....
work with a bulk insert, where I think a specific amount of records for one user but django.devser the following error: Traceback: File "/Users/alejo8591/Documents/etv/venv/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response 1. response = callback(request,...
a simple module that logs view exceptions on console. useful when debugging AJAX requests whose response does not appear on the browser's main window.
It would be nice if the sql logger would quote params in the printed queries to make it easier to copy/paste into a CLI client for closer optimization/examination. Eg instead...
I use devserver with cx_Oracle 5.1.1 and Django 1.3.1 At one place I've non Django code: ``` connections['default'].cursor().executemany(in_sql, values) ``` This leads to crash in: ``` File "keycom-dev-std/lib/site-packages/devserver/modules/sql.py", line 99,...