From 700f31150e92d33d84e6c2852bd2dfcc5d74398e Mon Sep 17 00:00:00 2001 From: Jeff Gehlbach Date: Tue, 2 Apr 2024 09:53:33 -0400 Subject: [PATCH 1/2] [Docs]: Specify that it's necessary to run manage.py migrate #186 --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 8a72b6b..007bc53 100644 --- a/README.md +++ b/README.md @@ -79,6 +79,11 @@ PLUGINS_CONFIG = { } ``` +To add the required `netbox-acls` tables to your NetBox database, run the `migrate` manager subcommand in your NetBox directory: +``` +./manage.py migrate +``` + ## Developing ### VSCode + Docker + Dev Containers From a7961b0d9e5faf1d16e9163411ff88395928ea1b Mon Sep 17 00:00:00 2001 From: Jeff Gehlbach Date: Tue, 2 Apr 2024 15:57:08 -0400 Subject: [PATCH 2/2] Revise migrate command to include venv --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 007bc53..5f2a8ac 100644 --- a/README.md +++ b/README.md @@ -79,9 +79,10 @@ PLUGINS_CONFIG = { } ``` -To add the required `netbox-acls` tables to your NetBox database, run the `migrate` manager subcommand in your NetBox directory: +To add the required `netbox-acls` tables to your NetBox database, run the `migrate` manager subcommand in the NetBox virtual environment: ``` -./manage.py migrate +cd /opt/netbox +sudo ./venv/bin/python3 netbox/manage.py migrate ``` ## Developing