daphne/testproject/testproject/urls.py
Robert Roskam fd74863ba4 Changed testproject, added tasks, updated docs (#284)
* Added in simple locust file

* Correcting the file name

* Updated to latest version of daphne

* moving settings up

* Moved over channels settings

* Removed channels settings

* Removed settings file

* Moved around files

* Made a file for normal wsgi

* Changed regular wsgi to point to channels settings

* Create __init__.py

* Added in the appropriate import

* Named it right

* Create urls_no_channels.py

* Delete urls_no_channels.py

* Doing this so I don't have to have multiple urls

* Update urls.py

* Update urls.py

* Added in fabric cmd for installing nodejs loadtest

* Added in git dependency

* Added in a symlink for loadtest

* Made run_loadtest command

* Added in argument for time

* Changed to format on string

* Updated arguments

* Fixed typo for argument

* Made some comments and moved around some tasks

* Edits to readme

* Add a lot more documentation

* Adjusted formatting

* Added a comment

* Made formatting cahnges

* Slight language change
2016-08-03 08:30:35 -07:00

18 lines
289 B
Python

from django.conf.urls import url
from chtest import views
urlpatterns = [
url(r'^$', views.index),
]
try:
from chtest import consumers
channel_routing = {
"websocket.receive": consumers.ws_message,
"websocket.connect": consumers.ws_connect,
}
except:
pass