Re: How to properly document and test models with natural keys

2021-04-11 Thread Anusheel Bhushan
HI Olivier - Django typically has separate settings files for each environment. You can also use different environment variables to use when starting the app. RE: models, here's an example of serialization that could be helpful to show how to serialize/deserialize models with foreign keys :

How to properly document and test models with natural keys

2021-03-29 Thread Olivier
Hello, I'm thinking about adding natural keys to a lot of existing models (Djano 3.1.7) to help initializing dev or prod database. 1. How best to unit test models using natural keys ? I was thinking of separately testing both serialization and deserialization but would be very curious to