Stuck on NoReverseMatch when trying to implement API. #10288
Unanswered
unleveled-variable
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I'm brand new at developing plugins in Django for Netbox. I'm running into an issue that I can't seem to figure out. I thought I'd see if anyone could point me in the right direction.
I've gotten a very basic setup going using the plugin tutorial provided by Netbox. I'm able to view the plugin in the GUI, and as far as I can tell I'm able to add items. The issue comes when I try to view the list of objects after I've added an object. After the initial item is added via the 'Add' button, I am unable to view the list ever again as long as there is an item populating it. If I reset the database (ie nuke the docker colume containing the postgres db) I'm able to view the plugin list_view again. Which is why I have a feeling this is due to the way I've implemented the API.
I feel as though the consumable_edit line is a red herring, as I don't have any URLs named consumable_edit to reference.
I will provide the traceback and some of the important files below.
Netbox Version: 3.3.1
Python Version 3.10.6
Happy to provide additional information/code. I'd love to fill this gap in my understanding of django apps.
api/serializers.py
api/urls.py
api/views.py
models.py
views.py
urls.py
tables.py
navigation.py
Beta Was this translation helpful? Give feedback.
All reactions