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

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

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 form.is_valid():
            if page is None:
                page = Page()
                page.save()
                item.profile.page = page

src/a/r/archfinch-HEAD/wiki/admin.py   archfinch(Download)
from archfinch.wiki.models import Page, Revision, RevisionText
from django.contrib import admin
 
admin.site.register(Page)
admin.site.register(Revision)