Error in urls in custom plugins #1228
Replies: 1 comment
-
Resolved |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi ,
I created a custom plugin in netbox on docker and added the plugins in plugin.py file.
Could you please help me in resolving this issue
In dockerfile I copy the plugin at /opt/netbox/netbox/virtual_server_stat.
But I am encountering error when doing compose up
ImportError: Module "virtual_server_stats.urls" does not define a "urlpattrens" attribute/class.
Structure is custom_plugin--> virtual_server_stats--> urls.py
In urls.py I defined:-
urlpatterns=[path('devicevsstats-list', DeviceVSStat.as_view(), name='devicevsstat_list').....]
Beta Was this translation helpful? Give feedback.
All reactions