How does a Django UUIDField generate a UUID in Postgresql?
<p>After reading this blog post <a href="https://blog.starkandwayne.com/2015/05/23/uuid-primary-keys-in-postgresql/" rel="noreferrer">https://blog.starkandwayne.com/2015/05/23/uuid-primary-keys-in-postgresql/</a></p>

<p>I wanted to know more about how Django generates uuid because I am using them as my pk. Well, according to the docs, <a href="https://docs.djangoproject.com/es/1.9/ref/models/fields/#uuidfield" rel="noreferrer">https://docs.djangoproject.com/es/1.9/ref/models/fields/#uuidfield</a>, Django is relying on the Python UUID module <a href="https://docs.python.org/3/library/uuid.html#uuid.UUID" rel="noreferrer">https://docs.python.org/3/library/uuid.html#uuid.UUID</a>. But there are many kinds of UUID, and it is not at all clear to me which one is being generated in Django, or how to chose, assuming a choice is available. </p>

<p>Finally, given the fragmentation issue pointed out in the blog post, and assuming <code>uuid_generate_v1mc</code> is not available directly in Python or Django, is there a way to force them to use it? </p>