I work with Django Framework, and I try to open a Python file from outside the Django package. I use the OS library to get to the path that is outside the Django package, like this:
file_path = OS.path.join(settings.FILES_DIR, 'execute_get_symbols.py')
In file_path I got only the file path
I want to run a function that is inside the file "execute_get_symbols.py".
My questions are:
- It is possible?
- And if it is possible, so how.
- And if it's not possible, So... how can I import files that are outside the Django package and execute the function? Like from package.file_name import function