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

All Samples(9)  |  Call(4)  |  Derive(0)  |  Import(5)

src/d/j/django-knowledge-HEAD/knowledge/views.py   django-knowledge(Download)
 
from knowledge.models import Question, Response, Category
from knowledge.forms import QuestionForm, ResponseForm
from knowledge.utils import paginate
 

src/d/j/django-knowledge-0.2.0/knowledge/views.py   django-knowledge(Download)
 
from knowledge.models import Question, Response, Category
from knowledge.forms import QuestionForm, ResponseForm
from knowledge.utils import paginate
 

src/d/j/django-knowledge-HEAD/tests/mock/tests/forms.py   django-knowledge(Download)
from mock.tests.base import TestCase
from knowledge.models import Question, Response
from knowledge.forms import QuestionForm, ResponseForm
 
 
        }
 
        form = ResponseForm(self.joe, question, RESPONSE_POST)
 
        self.assertTrue(form.is_valid())

src/d/j/django-knowledge-HEAD/tests/mock/tests/signals.py   django-knowledge(Download)
from mock.tests.base import TestCase
from knowledge.models import Question, Response
from knowledge.forms import QuestionForm, ResponseForm
from knowledge import settings
 
 
        # question is by joe, first response is by admin
        form = ResponseForm(self.bob, self.question, RESPONSE_POST)
        self.assertTrue(form.is_valid())
        response = form.save()
 
        # question is by joe, first response is by admin
        form = ResponseForm(self.bob, self.question, RESPONSE_POST)
        self.assertTrue(form.is_valid())
        response = form.save()
 
        # question is by joe, first response is by admin
        form = ResponseForm(self.joe, self.question, RESPONSE_POST)
        self.assertTrue(form.is_valid())
        response = form.save()

src/d/j/django-knowledge-HEAD/tests/mock/tests/settings.py   django-knowledge(Download)
from knowledge import settings
from knowledge.models import Question, Response
from knowledge.forms import QuestionForm, ResponseForm