Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python

Can't pass Karaoke Challenge - No Reverse Match Error

My test is returning an error, but it won't tell me where the error is.

NoReverseMatch: Reverse for 'performer' with arguments '()' and keyword arguments '{'pk': ''}' not found. 1 pattern(s) tried: ['songs/performer/( ?P<pk>\d+)/$'

Steven Parker
Steven Parker
243,656 Points

Proper spacing is crucial to Python code. Instructions for formatting code can be found in the Markdown Cheatsheet pop-up below the "Add an Answer" area. :arrow_heading_down:   Or for more detailed instructions, you can watch this video on code formatting.

1 Answer

Steven Parker
Steven Parker
243,656 Points

That space between the parenthesis and the question mark in the regex could be a problem, try removing it.

If that's not it, please post a link to the challenge page you are working with.

Thanks for your help. I submitted the question through my phone so that's probably why I had some typos. I'm updating my code now

Here's the link to my workspace https://w.trhou.se/ngec3kb3la