title: How to introspect django model fields?
body: <p>I am trying to obtain class information on a field inside a model, when I only know name of the field and name of the model (both plain strings). How is it possible?</p>
  
  <p>I can load the model dynamically:</p>
  
  <pre><code>from django.db import models
  model = models.get_model('myapp','mymodel')
  </code></pre>
  
  <p>Now I have field - 'myfield' - how can I get the class of that field?</p>
  
  <p>If the field is relational - how to get related field?</p>
  
  <p>Thanks a bunch!</p>