Closed dmdhrumilmistry closed 1 year ago
Found a workaround for this, we can scan each apps one by one or provide complete path to django project.
App by App
s semgrep --config $(routes which django-rest-framework) ./app1 -o app1-routes.json --json # app by app
s routes viz --browser app1-routes.json
All at once
$ semgrep --config $(routes which django-rest-framework) ~/project/repo/path -o routes.json --json # complete django project
s routes viz --browser routes.json
Hi there,
Yes, I would recommend scanning all directories at once. Typically you can achieve this by specifying a parent directory of multiple app directories, as you've done here. The reason for this is route-detect
cannot create a common root node if there are multiple directories specified. We'd end up with multiple trees in the visualization, or a "forest." This is technically achievable, but route-detect
does not currently support it.
Thanks for giving it a try!
I'm trying to run tool on a Django project with multiple Django applications installed inside a single Django project. I'm facing issues while creating a visualization. Django app is using Django Rest Framework. please find the logs below: