You're right. Assume I put the keyword arguments at the end, sorry - the
two positional arguments are the channel name and the consumer.

On Fri, Mar 18, 2016 at 12:21 PM, Ryan Hiebert <r...@ryanhiebert.com> wrote:

>
> On Mar 18, 2016, at 9:58 AM, Andrew Godwin <and...@aeracode.org> wrote:
>
> routing = [
>     route("http.request", ViewConsumer),
>     route("websocket.connect", path="^chat/(?P<room>[^/]+)/$",
> ChatConnect),
>     route("sms.receive", sender="+44(?P<local_number>[0-9]+)$",
> UkSmsConsumer),
>     include(path="^notifications", "notification.routing.routing"),
> ]
>
>
> Something's up with this example, it has postional arguments after keyword
> arguments, which is invalid Python. Is there supposed to be a keyword used
> for the final parameters?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django developers (Contributions to Django itself)" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-developers+unsubscr...@googlegroups.com.
> To post to this group, send email to django-developers@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-developers.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-developers/68C930D0-1C2E-4CF4-B3B8-DA8450C468AB%40ryanhiebert.com
> <https://groups.google.com/d/msgid/django-developers/68C930D0-1C2E-4CF4-B3B8-DA8450C468AB%40ryanhiebert.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/CAFwN1uo670c7SJ%3D9tiP6FBBxaR9jTduN6CiuQsK_5hpbsaQPkg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to