Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(2)  |  Derive(0)  |  Import(1)

src/a/r/archfinch-HEAD/wiki/views.py   archfinch(Download)
from archfinch.wiki.models import PageForm, Page, Revision, RevisionText
from archfinch.main.models import Item
from django.shortcuts import get_object_or_404
from archfinch.utils import render_to_response
from django.core.urlresolvers import reverse
 
    if request.method == 'POST':
        form = PageForm(request.POST)
        if form.is_valid():
            if page is None:
        else:
            text = ''
        form = PageForm(initial={'text': text})
 
    return render_to_response('wiki/edit.html', locals(), context_instance=RequestContext(request))