Closed wli closed 8 years ago
Thanks for the PR.
I think it's better to simply avoid the use of patterns
. See https://github.com/recamshak/django-debug-panel/commit/b9c86fd3d44b465e56dab6d54026f40980cbcbea
That's perfectly fine, but then it won't support older django versions. You have a comment in there that supports Django 1.4, so I figured we should maintain compatibility. Totally fine to drop support for those old versions though :)
It is compatible with all previous version of Django. pattern
is just a helper function that add a prefix to the url
's view
path. It's not mandatory to use it, even on older Django version. (https://github.com/django/django/blob/1.4/django/conf/urls/__init__.py#L39)
Ah okay, didn't know that. Thanks for the clarification!
This fixes urls.py so that the following errors do not come up when using Django 1.9: