How to embed graph in Django for the users

・1 min read

I want to show a graph(using matplotlib) to the user. In which Django directory should I place my code?


my_matplotlib/ (basically, the code for the graph)

from my_matplotlib.my_matplotlib import my_func

def my_func():
foo = 'bar'
return foo

I tried this but it's not working.

Did you find this post useful? Show some love!
Classic DEV Post from Jun 3 '18

What's your opinion on Microsoft's GitHub Acquisition?

The Verge just reported that Microsoft has acquired GitHub.

Jaydeep Borkar
I'm a Computer Engineering student at University of Pune, India. Implementing my skills to build products that can help people and our environment across the globe is what that drives me. is where software developers stay in the loop and avoid career stagnation.

Sign up (for free)