stephenmcd/django-socketio — Issue #15: DJANGO_SOCKETIO_PORT error in example project
Author: philipn
Created: 2012-02-02 02:19:02+00:00
State: open

1. Install django-socketio via setup.py install (latest HEAD)
2. Run python manage.py runserver_socketio in one terminal
3. Run python manage.py runserver in another
4. Navigate to http://127.0.0.1:8000/
5. Create a room

The error Caught KeyError while rendering: 'DJANGO_SOCKETIO_PORT' appears.

It looks like it's not in the environment (why would it be?) Maybe I'm missing something here, though. A simple fix (?) is to do:

from django_socketio import settings as socketio_settings

then set it to socketio_settings.PORT.