from django.template import RequestContext
from django.shortcuts import render, render_to_response
from django.http import HttpResponse
from .forms import PostModelForm

def index(request):
    # Request the context of the request.
    # The context contains information such as the client's machine details, for example.
    context = RequestContext(request)

    # Construct a dictionary to pass to the template engine as its context.
    # Note the key boldmessage is the same as {{ boldmessage }} in the template!
    context_dict = {'boldmessage': "I am bold font from the context"}

    # Return a rendered response to send to the client.
    # We make use of the shortcut function to make our lives easier.
    # Note that the first parameter is the template we wish to use.
    return render_to_response('tribwire/index.html', context_dict, context)

def new_wire(request):
    form = PostModelForm(request.POST or None)
    if form.is_valid():
    	save_it=form.save(commit=False)
    	save_it.save()
    return render_to_response('tribwire/new_wire.html', locals(), context_instance=RequestContext(request))
@@ -187,674 +187,112 @@
 t):%0A
-    # Request the context of the request.%0A    # The context contains information such as the client's machine details, for example.%0A    context = RequestContext(request)%0A%0A    # Construct a dictionary to pass to the template engine as its context.%0A    # Note the key boldmessage is the same as %7B%7B boldmessage %7D%7D in the template!%0A    context_dict = %7B'boldmessage': %22I am bold font from the context%22%7D%0A%0A    # Return a rendered response to send to the client.%0A    # We make use of the shortcut function to make our lives easier.%0A    # Note that the first parameter is the template we wish to use.%0A    return render_to_response('tribwire/index.html', context_dict, context
+%0A    return render_to_response('tribwire/index.html', locals(), context_instance=RequestContext(request)
 )%0A%0Ad
@@ -313,16 +313,17 @@
 quest):%0A
+%0A
     form
@@ -442,16 +442,22 @@
 .save()%0A
+    %09%0A
     retu

add basic form