Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

namespace turkle's URLs for reverse lookup #195

Open
cash opened this issue Nov 9, 2022 · 0 comments
Open

namespace turkle's URLs for reverse lookup #195

cash opened this issue Nov 9, 2022 · 0 comments

Comments

@cash
Copy link
Member

cash commented Nov 9, 2022

Looks like @TomLippincott ran into an issue using Turkle as an app due to us not namespacing our URLs:

stats_url = reverse('stats_for_user', kwargs={'user_id': obj.id})

I believe this prevents any other app running from using the key 'stats_for_user'. What I don't understand is why Tom switched from

    return redirect(index)

to

    return redirect(reverse("turkle:index"))

as in the first case index it is a function and shouldn't case any conflicts.

Two relevant commits: 5a529f0, 5045edb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant