Skip to content

Don't explode if a project uses tuple'd urlpatterns #268

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

Merged
merged 1 commit into from
Mar 14, 2012

Conversation

danfairs
Copy link

This fixes #235. The toolbar will now work correctly if the Django project's urlpatterns are a tuple, rather than a list.

(We do this because we have lots of apps that re-use another app's URLConf - we tuple-ise the urlpatterns to avoid those apps accidentally mutating the base app's URLs.)

@danfairs
Copy link
Author

Ugh - sorry for all the whitespace changes! My editor strips whitespace. I'll resubmit with a tighter patch, if you'd like me to.

dcramer added a commit that referenced this pull request Mar 14, 2012
Don't explode if a project uses tuple'd urlpatterns
@dcramer dcramer merged commit 8059454 into django-commons:master Mar 14, 2012
ryneeverett pushed a commit to ryneeverett/django-debug-toolbar that referenced this pull request Oct 2, 2016
Don't explode if a project uses tuple'd urlpatterns
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

Successfully merging this pull request may close these issues.

Getting 'can only concatenate tuple (not "list") to tuple'
2 participants