Netbox 3.0.8 Test Application Issues - Ubuntu 20.04

1,769 views
Skip to first unread message

owup

unread,
Oct 20, 2021, 12:23:25 PM10/20/21
to NetBox
Good afternoon,
Has anyone run into any issues w/ testing NetBox: 

admin@netbox:/opt/netbox/netbox$ python3 manage.py runserver 0.0.0.0:8000 --insecure
Traceback (most recent call last):
  File "manage.py", line 8, in <module>
    from django.core.management import execute_from_command_line
ModuleNotFoundError: No module named 'django'

I am followed the guide verbatim but now stuck here. 
I tried skipping to the next step and testing via: http://127.0.0.1:8000 but I received an error message, 'Unable to Connect'.

Could someone provide guidance?

Brian Candler

unread,
Oct 20, 2021, 1:37:25 PM10/20/21
to NetBox
You need to activate the virtualenv before doing runserver.

cd /opt/netbox
. venv/bin/activate
python3 netbox/manage.py runserver 0.0.0.0:8000 --insecure

owup

unread,
Oct 21, 2021, 2:10:59 PM10/21/21
to NetBox
You've helped me again, thank you, Brian. 
Reply all
Reply to author
Forward
0 new messages