Is it possible to access the Django settings from a migration? I'm attempting to load large data files (not fixtures within my project) into my database via a data migration. I would like the root directory of the data files to be configurable and the ability to read the path of the root directory from within my migration.
in you migration file type:
from django.conf import settings
now you have access to your settings
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With