title: How to give API key to Django model
body: <p>I have to build a web service and API using Django. I was provided with description of models and JSON file with API methods (<a href="https://pastebin.com/8YXarxZc" rel="nofollow noreferrer">here</a>). I have decided to use Django REST framework, but this is first time I am working with an API. </p>
  
  <p>The  field in the described model that is bothering me: 
  <code>api_key = models.CharField(...) #access key to api</code>. </p>
  
  <p>As I understand, this key needs to be given by me to a model object (in my case it is a model for Printer that prints checks for client and kitchen), and then it must be used for accessing these objects to the API (methods /new_checks/ and /check/). How do I create these keys? Should I just use a random API key generator or there is some instrumental in Django REST framework that I haven't found yet?</p>