turkle icon indicating copy to clipboard operation
turkle copied to clipboard

namespace turkle's URLs for reverse lookup

Open cash opened this issue 2 years ago • 0 comments

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: 5a529f0cc6ef8a6d170f0d9f123c56a12e4af427, 5045edb8dc14b647e529a4f2f74331dad0290e72

cash avatar Nov 09 '22 15:11 cash