ModuleNotFoundError: No module named 'django' #10426

Closed
opened 2025-12-29 21:31:19 +01:00 by adam · 1 comment
Owner

Originally created by @Rushtard on GitHub (Oct 31, 2024).

Deployment Type

Self-hosted

Triage priority

N/A

NetBox Version

v4.1.5

Python Version

3.11

Steps to Reproduce

install a plugin (in this case it is netbox-plugin-dns
then adding the required netbox_dns tables to the database with the command ./manage.py migrate

Expected Behavior

expected behavior is the command to execute and the database to be altered; with no error message

Observed Behavior

when adding the required netbox_dns tables to the database with the command ./manage.py migrate; i have the following message:

Traceback (most recent call last):
  File "/opt/netbox/netbox/./manage.py", line 8, in <module>
    from django.core.management import execute_from_command_line
ModuleNotFoundError: No module named 'django'
Originally created by @Rushtard on GitHub (Oct 31, 2024). ### Deployment Type Self-hosted ### Triage priority N/A ### NetBox Version v4.1.5 ### Python Version 3.11 ### Steps to Reproduce install a plugin (in this case it is netbox-plugin-dns then adding the required netbox_dns tables to the database with the command ./manage.py migrate ### Expected Behavior expected behavior is the command to execute and the database to be altered; with no error message ### Observed Behavior when adding the required netbox_dns tables to the database with the command ./manage.py migrate; i have the following message: ``` Traceback (most recent call last): File "/opt/netbox/netbox/./manage.py", line 8, in <module> from django.core.management import execute_from_command_line ModuleNotFoundError: No module named 'django' ```
adam added the netbox label 2025-12-29 21:31:19 +01:00
adam closed this issue 2025-12-29 21:31:20 +01:00
Author
Owner

@Rushtard commented on GitHub (Oct 31, 2024):

found the issue: should execute it while in the venv.

@Rushtard commented on GitHub (Oct 31, 2024): found the issue: should execute it while in the venv.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#10426