Django views, models and routers. Configuration for the Onion repository mode using PostgreSQL