<class 'django.urls.exceptions.NoReverseMatch'> #17336
-
Hi, Receiving below exception on a fresh install. I did some research and found out this mostly happens because of plugins but I don't have any plugins installed. `<class 'django.urls.exceptions.NoReverseMatch'> Reverse for 'consoleserverporttemplate_list' not found. 'consoleserverporttemplate_list' is not a valid view function or pattern name. Python version: 3.11.2 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Can you try searching for that string?
On my system it doesn't exist anywhere. I wonder if you have an extra spurious file lying around (although you did say it was a fresh install). You could also try setting Please also check if you are using virtualenv properly; you should not be relying on any version of Django installed globally on your system, nor any other python libraries for that matter. |
Beta Was this translation helpful? Give feedback.
OK, so that comes from the ObjectCountsWidget, which does indeed appear to be broken in your setup.
In my (uncustomized) setup, I have several instances of the ObjectCountsWidget which are bound to explicit sets of models. For example, the one labelled "Organization" looks like this:
It would appear that you have an object counts widget configured to count ConsoleServerPortTemplates (or perhaps it's not bound to any model and it's trying to search all models??). The code is (wrongly) hard-coded to assume that every model has a "foo_list" endpoint.
You can probably fix this by resetting your dashboard.
However, I think Netbox should be made more robust against this problem. If you edit
/o…