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 Requiring Emails and Customization

Neil Brown
Neil Brown
22,514 Points

Why does the Github redirect causes NoReverseMatch? [Solved]

After hitting the signup button, I'm taken to github.com to authorize the app, which works fine. But then the redirect from Github throws "NoReverseMatch at /accounts/github/login/callback/'posts' is not a registered namespace".

The PATH_INFO in Request Info is '/accounts/github/login/callback/' which is as expected. I can't work out why it is trying to find "posts". Does anyone have any suggestions?

1 Answer

Neil Brown
Neil Brown
22,514 Points

While updating the paths from using url to path, I forgot to alter the msg/settings file variable LOGIN_REDIRECT_URL = "posts:all" to LOGIN_REDIRECT_URL = "all"