Перейти к содержанию

Обезличивание

Скрипт обезличивает базу postgres.

Для запуска

  • создать csv-файл с полями shortname, description, level_key, shortname_new, description_new:
    shortname;description;key;shortname_new;description_new
    item1;This is the first item;1;new_item1;Updated description for the first item
    item2;This is the second item;2;new_item2;Updated description for the second item
    item3;This is the third item;3;new_item3;Updated description for the third item
    item4;This is the fourth item;4;new_item4;Updated description for the fourth item
    item5;This is the fifth item;5;new_item5;Updated description for the fifth item
    
  • python manage.py depersonalization <postgres_user> <postgres_password> <postgres_host> <postgres_db_name> <file_path>