[Answer]-Is it possible to change the behavior in view of existing apps after new app is installed with touching the existing apps?

1👍

✅

You can insert the URL mappings of StockBalance in front of those of Stock. This ensures those URLs will be found first by Django and thus you can fully reimplement (inherit / override / etc) what those views will do.

So:

  • /stock/new = implemented by new app
  • /stock/{id} = implemented by new app
  • /stock/… = all others, as before

Leave a comment