django-ddp/dddp
Tyson Clugg e7b38b89db Stop running request middleware upon connection.
This change deserves a more thorough explanation.  All currently
released versions of Django are based around the concept of receiving a
request and immediately dispatching a response.

WebSocket connections don't follow this convention, and the `request` hangs
around for long periods of time.  As such, things like `request.user` don't
really make sense as a user may login, then logout, then login again all
within the life of a single request.

Given that the concepts applied in Django are based upon a premise that
doesn't hold true for WebSockets (that a request is short-lived), it
doesn't make sense to apply those concepts in django-ddp.
2015-07-21 21:24:14 +10:00
..
accounts Add ThreadLocal factory for this.user which is retrieved from the datbase on demand. 2015-07-21 21:19:55 +10:00
migrations Refactored send_notify to add custom serialization support. 2015-05-06 19:40:54 +10:00
server Use mimetypes module to correctly guess mime types for Meteor files being served. 2015-06-29 18:19:07 +10:00
test Move test projects into path that can be imported post install. 2015-05-27 08:55:46 +10:00
__init__.py Move thread local factories out of ThreadLocal so other modules may add their own factories. 2015-07-21 21:17:23 +10:00
admin.py Simplify ModelAdmin registration. 2015-07-16 16:26:53 +10:00
alea.py Fix generation of meteor ID's to match meteor client implementation. 2015-04-14 11:08:08 +10:00
api.py Never assume this.user_id is available. 2015-07-21 21:23:37 +10:00
apps.py Remove unused imports from AppConfig module. 2015-06-14 00:20:39 +10:00
main.py Use OrderedDict for geventwebsocket.Resource spec so geventwebsockets>=0.9.4 doesn't complain. 2015-05-27 15:16:07 +10:00
models.py Add short_description to get_meteor_id helper for use in ModelAdmin list_display. 2015-07-17 17:49:23 +10:00
msg.py WIP on Django 1.8 compatibility. 2015-06-12 23:08:27 +10:00
postgres.py Fix order of added/changed messages by deferring id checking until emitting WebSocket frames. 2015-05-27 12:48:16 +10:00
websocket.py Stop running request middleware upon connection. 2015-07-21 21:24:14 +10:00