Permission error when running manage.py from virtual env #15655
-
Pretty sure I have set this up wrong, but can't see what the issue is. I'm new to virtual environments also. Ownership for /opt/netbox-3.7.4/netbox/static/ is root:root azureuser@Netbox-NBL:/opt/netbox/netbox$ source /opt/netbox/venv/bin/activate You have requested to collect static files at the destination /opt/netbox-3.7.4/netbox/static This will overwrite existing files! Type 'yes' to continue, or 'no' to cancel: yes |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
(no need to separately activate the venv with this syntax) |
Beta Was this translation helpful? Give feedback.
sudo /opt/netbox/venv/bin/python /opt/netbox/netbox/manage.py collectstatic
(no need to separately activate the venv with this syntax)