title: How can I import a python module function dynamically?
body: <p>Assuming <code>my_function()</code> is located in my_apps.views I would like to import <code>my_function</code> dynamically without using something like <code>exec</code> or <code>eval</code>.</p>
  
  <p>Is there anyway to accomplish this. I'm looking to do something similar to:</p>
  
  <pre class="lang-py prettyprint-override"><code>my_function = import_func("my_apps.views.my_function")
  
  my_function()
     ... code is executed
  </code></pre>