To do work of in django without using it

  amazon-kcl, django, docker, python

I am making a project using amazon_kclpy in docker, i am directly running a file through docker command CMD $( –print_command –java /usr/bin/java –properties ./code/apps/events_consumer/, in folder there is a comand to run file, now i want to save data in redis, i am doing everything right, i checked it through python shell, it runs perfectly, but when i am trying by directly running, it is not saving data,

also without python shell i tried to save data using only interpreter python commnd and it is also not able to save data, i want to know is there any way to do the work of file without running it.

or any other method to make it work.

Source: Docker Questions