check this example - https://bitbucket.org/voron-raven/maps/src/master/core/management/commands/import.py
пʼятниця, 20 липня 2018 р. 14:37:42 UTC+3 користувач dp Audiovisual написав: > > Hello, I need to create a "custom command" that uploads all the Json files > of a folder within the project to the postgres database. Help, I'm learning. > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/576df738-4ded-4263-a0e2-116538f1ffc1%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

