Skip to content
Discussion options

You must be logged in to vote

If the file is /opt/netbox/netbox/scripts/testExporter.py, then you would do:

/opt/netbox/venv/bin/python /opt/netbox/netbox/manage.py runscript --loglevel debug testExporter.TestDNExporter 

By default it won't run a script in an arbitrary directory, but it might be possible with the --pythonpath flag.

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
2 replies
@john2893
Comment options

@candlerb
Comment options

Comment options

You must be logged in to vote
4 replies
@candlerb
Comment options

@john2893
Comment options

@candlerb
Comment options

Answer selected by john2893
@john2893
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants