How do I use modules in Django?
<p>I'm trying to display a graph on a web page. I can get the graph to show up with a simple example that only uses functions defined within the function. However, I want to be able to expand it further. In my original code, I have one main 'graphing' function that uses the functions of other modules so that it stays organized. When I try to import these modules, which exist as files within the Django app folder, it says there is no module with that name. How do I fix this?</p>

<pre><code>Error: File "/Users/andrewho/Desktop/website/charts/views.py", line 48, in &lt;module&gt;
    import graphing
ImportError: No module named 'graphing'
</code></pre>

<p>I clearly have a file in the app folder called graphing.py, so why does it give me this error?</p>

<p>use " from 'where' import 'what'"</p>

<p>so may be like "from . import graphing" if its in the same directory</p>

python django matplotlib