Skip to content

Commit

Permalink
frontend for snapshotDetailsPage (OWASP#981)
Browse files Browse the repository at this point in the history
* fixed some issue

* backend test fix

* All test-case fix

* some optimization

* fixed case

* Update code

---------

Co-authored-by: Arkadii Yakovets <[email protected]>
Co-authored-by: Yash Goyal <[email protected]>

Update backend data

commit
  • Loading branch information
abhayymishraa authored and yashgoyal0110 committed Mar 3, 2025
1 parent 48ccbd4 commit decf3d1
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions backend/generate_mode_graph.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import os
import django
from django.core.management import call_command

# Set up Django environment manually
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "backend.settings.test")
os.environ.setdefault("DJANGO_CONFIGURATION", "Test")

django.setup()

# Generate the model graph
output_file = "backend/backend_models.png"
call_command("graph_models", "-a", "-g", "-o", output_file)

print(f"Model graph saved to {output_file}")

0 comments on commit decf3d1

Please sign in to comment.