greatkart-course icon indicating copy to clipboard operation
greatkart-course copied to clipboard

Added script to create user profiles for existing users

Open sagarhande opened this issue 2 years ago • 1 comments

  1. Created a python script that will create UserProfile for all existing users.
  2. Used bulk_create to efficiently create entries.

sagarhande avatar Jan 24 '23 06:01 sagarhande

To run script use below command python manage.py runscript script_name

For reference: https://django-extensions.readthedocs.io/en/latest/runscript.html

sagarhande avatar Jan 24 '23 06:01 sagarhande