I am learning Django.
I know how to add use {% static "abc/xyz" %}
in templates.
But now I want to use something similar in views.py file.
For example project->my_app->static->resources->abc.json
is the file I need to access in the views.py
of my_app
.
When I tried f = open('resources/abc.json')
it didn't work.
How do I do it correctly?