Django 2.0 Upgrade - False Positives on urls.W001 Warning
Turns out this was indeed related to Django CMS -- this is the first release of theirs that supports Django 2 but it still supports Django 1.11 also, so they're shooting down the middle in some spots and when it pulls in URLs for our apphooks they get translated into patterns with ^ and $ in the mix. Hope that info helps someone else who may run into this. Thanks for all the suggestions!
I'm upgrading a Django project from Django 1.11 to Django 2.1.7, and after changing all the URL patterns to the Django 2 way of doing things, I'm getting a bunch of false positives on the urls.W001 warning when I do manage.py runserver.
Example:
?: (urls.W001) Your URL pattern '^some-pattern/$' [name='some_name'] uses include with a route ending with a '$'. Remove the dollar from the route to avoid problems including URLs.
When I look at that URL pattern in my urls.py file, however, it absolutely doesn't have a ^ or $ in it.
path('some-pattern/', views.some_view_function, name='some_name'),
I've blown away both my local virtualenv and my Vagrant box and started from scratch just to make sure it's not some lingering compiled stuff somewhere, but the behavior is the same when starting from scratch.
Has anyone else run into this? The app itself seems to run fine, I'm just flummoxed at where Django might be seeing things that don't exist anywhere in my code.
Thanks for any ideas anyone might have.