{"version":"1.0","type":"rich","title":"Gist 4ae41690dec489b7a725","description":"This example shows a Django application whose settings and database configuration change depending on whether a `test` argument is passed on the command line. It demonstrates a conditional import that selects between a production settings module and a test-specific one, while also adjusting the installed apps list through a `fix_apps` function. The code relies on Python’s `sys.argv` for argument parsing and uses Django’s `DATABASES` and `INSTALLED_APPS` configuration dictionaries. The visualization highlights how environment-specific setup can be cleanly separated and toggled.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-4ae41690dec489b7a725?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}