kinesisresponder/urls.py (6 lines of code) (raw):

""" """ import logging from django.urls import path, re_path from .views import MessageListView # This new app handles the request to the URL by responding with the view which is loaded # from portal.plugins.gnmkinesisresponder.views.py. Inside that file is a class which responsedxs to the # request, and sends in the arguments template - the html file to view. # name is shortcut name for the urls. urlpatterns = [ re_path(r'^messages/(?P<stream_name>\w+)/$', MessageListView.as_view(), name='message_list_view') ]