Skip to content

Fenced code block in article missing a line of code  #2

@lmponcio

Description

@lmponcio

Hi! Firstly, thanks for this tutorial, it helped me a lot.

I think I found a small omission in the article:

Under the title "Making the view respond to Ajax requests", when the artists_view is defined, there is a comment # ...earlier code, and after that comment the following line of code is missing (I found it in the repository):

does_req_accept_json = request.accepts("application/json")

I hope this is useful.

Thanks again

Kind regards,
Martin

PS: I am trying to use this approach for doing autocomplete of the input (instead of updating an html element). If you have an article that covers that, or any suggestions I would appreciate it

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions