Psycopg2.errors.UndefinedFunction: function gen_random_uuid() does not exist

Error occurs when trying to run python migrate in a django application.
complete code

git clone  
cd saleor  
python migrate  

psycopg2.errors.UndefinedFunction: function gen_random_uuid() does not exist
LINE 1: UPDATE "account_user" SET "uuid" = GEN_RANDOM_UUID()

it doesn't work when running

but works in running postgres I created extention in postgres, commited that. postgres=# SELECT gen_random_uuid(); gen_random_uuid

(1 row)

It works fine with docker.
Any help will be appreciated.

Back to Top