I am trying to make one variables.py (reusbale module that can be used by other py files in the app) in my django project which should be set only once when the runserver command is executed.
ex. reading a csv file using pd.read_csv once at the startup of the project so that every time an API call is made, variable should not load csv file instead it should already have the dataframe value already in the variable.
How can this be achieved?
Python version - 3.6 Django - 2.1