title: Using Django Views and Forms without a Models based Database
body: <p>I am kind of new to Django (been writing Python for a while now) and I was wondering if it is at all possible to use the Views and Forms framework in Django without having the need for a database or the use of Models.</p>
  
  <p>The content is dynamic, and gets populated into a dictionary each time the user launches the website. So I would like to leverage the Django Views and Forms but passing through the details from the dictionary and not from a Model Class (Database)</p>
  
  <p>I hope I have explained myself correctly.</p>
  
  <p>So to add onto this then.</p>
  
  <p>If you had the following for a Models based class:</p>
  
  <pre><code>class TestClass(models.Models):  
      var1 = models.CharField(....)
  
  class DetailView(generic.DetailedView):  
      model = TestClass
  </code></pre>
  
  <p>How could I use the DetailView class (Or any other django based View framework with a class based dictionary like this:  </p>
  
  <pre><code>class TestObj(object):  
     def __init__(self):
         self.var1 = []
  
  testdict = defaultdict(TestObj)
  testdict['test'].var1 = ['blah']
  </code></pre>
  
  <p>Do I just use the dictionary in the model field under the DetailView class ?</p>
  
  <p>please excuse me if I have anything typed incorrectly.</p>
  
  <p>Thanks</p>