netbox-qrcode
netbox-qrcode copied to clipboard
VSCode Breakpoints and Create auto Netbox User for developer and Chapter for Debeloper
I'm sorry, I've learned a lot in the last few days. But I'd say I'm done now. This extension is intended to help with the further development of the plugin. Summary of what has been done so far.
README Chapter for Developer
In the README a chapter for developers was created to get a better start if someone wants to help.
Makefile dokumentation
Makefile comments have been added. And the Makefile has also been extended to include "make debug-vscode". This prepares the Docker project for the VSCode RUN AND DEBUG mode.
Support debugging in VSCode with breakpoints
The following files were created to support debugging in VSCode with breakpoints:
.dockerignore .vscode/launch.json .vscode/tasks.json develop/docker-compose-debug.yml
More information can be found in the readme and in the files.
Automatically create the Netbox user admin with the password admin
The following files were created to achieve the automatic creation of the admin SuperUser user for Netbox. Makes it easier to get started with development and is only intended for Docker development.
First start
Secound start
develop/management/init.py develop/management/commands/init.py develop/management/commands/makesuperuser.py
The script file for creating the Netbox Admin is only distributed when using the Docker Compose development environment. The docker-compose.yml file has also been adapted so that makesuperuser is also executed here.
The makesuperuser.py script is built in such a way that it checks whether a SuperUser has been created. If not, it is created. So if you start the container again, there is no error message that there is already a user.
I am therefore asking for a test now :D