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

All Samples(15)  |  Call(2)  |  Derive(0)  |  Import(13)

src/p/y/pyramid-examples-HEAD/board/board/views.py   pyramid-examples(Download)
import transaction
 
from board.models import db, Post
 
 
    if text:
        # Add
        db.add(Post(text))
        transaction.commit()
        region_invalidate(get_posts, None)

src/p/y/pyramid-examples-HEAD/board/board/tests.py   pyramid-examples(Download)
from sqlalchemy import create_engine
 
from board.models import db, Post, initialize_sql
 
 

src/c/h/chieftain-HEAD/converter/models.py   chieftain(Download)
from django.db import models, connections, transaction
from django.utils.html import strip_tags as strip_html_tags
from board.models import Thread, Post, File, FileType, Section, DeniedIP
from board.tools import get_key, print_flush
 
        if slug in self.bad_sections:
            raise ConvertError("Section {} does not exist".format(slug))
        post = Post()
        post.data = ""
        for f in self.fields:

src/c/h/chieftain-HEAD/board/views.py   chieftain(Download)
from django.core.paginator import Paginator
from django.shortcuts import render, get_object_or_404, redirect
from django.utils.translation import ugettext_lazy as _
from board.models import Post, File, Section, PostForm
from board.shortcuts import get_page_or_404, add_sidebar

src/p/g/pgBoardUnchained-HEAD/board/views.py   pgBoardUnchained(Download)
 
# Local App
from board.models import Forum, Thread, Post, User, UserProfile
 
# Create your views here.

src/c/h/chieftain-HEAD/board/management/commands/truncate.py   chieftain(Download)
from django.core.management.base import BaseCommand
 
from board.models import Thread, Post, File
 
 

src/c/h/chieftain-HEAD/board/management/commands/rebuild_cache.py   chieftain(Download)
 
from board.tools import print_flush
from board.models import Thread, Post
 
 

src/c/h/chieftain-HEAD/pda/views.py   chieftain(Download)
from django.core.paginator import Paginator
from django.shortcuts import get_object_or_404, render, redirect
from board.models import Post, Section
from board.shortcuts import get_page_or_404, add_sidebar
 

src/c/h/chieftain-HEAD/mobile/views.py   chieftain(Download)
from django.core.paginator import Paginator
from django.shortcuts import render, redirect, get_object_or_404
from board.models import Post, Section
from board.shortcuts import get_page_or_404, add_sidebar
 

src/d/j/django_learning-HEAD/board/views.py   django_learning(Download)
from django.views.generic.edit import CreateView
 
from board.models import Post, Comment
from board.forms import PostForm, CommentForm
 

  1 | 2  Next