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

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

src/d/j/django-cohorts-HEAD/django_cohorts/views.py   django-cohorts(Download)
from django.views.generic.simple import direct_to_template
from django_cohorts.analysis import CohortAnalysis
def cohort_analysis(request):
    if request.method == 'POST':
        form = CohortAnalysisForm(request.POST)
        if form.is_valid():
            pass# Do something to change the analysis shown
    analysis = CohortAnalysis()