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

All Samples(14)  |  Call(8)  |  Derive(0)  |  Import(6)

src/d/j/django-contactme-1.1/django_contactme/views.py   django-contactme(Download)
from django_contactme import signals, signed
from django_contactme.models import ContactMsg
from django_contactme.forms import ContactMsgForm
from django_contactme.utils import send_mail
 
 
    # Construct the ContactMsgForm
    form = ContactMsgForm(data=data)
 
    # Check security information

src/d/j/django-contactme-HEAD/django_contactme/views.py   django-contactme(Download)
from django_contactme import signals, signed
from django_contactme.models import ContactMsg
from django_contactme.forms import ContactMsgForm
from django_contactme.utils import send_mail
 
 
    # Construct the ContactMsgForm
    form = ContactMsgForm(data=data)
 
    # Check security information

src/d/j/django-contactme-1.1/django_contactme/templatetags/contactme.py   django-contactme(Download)
from django import template
from django.template.loader import render_to_string
 
from django_contactme.forms import ContactMsgForm
 
    def render(self, context):
        context.push()
        form_str = render_to_string("django_contactme/form.html", 
                                    {"form": ContactMsgForm() }, 
                                    context)

src/d/j/django-contactme-HEAD/django_contactme/templatetags/contactme.py   django-contactme(Download)
from django import template
from django.template.loader import render_to_string
 
from django_contactme.forms import ContactMsgForm
 
    def render(self, context):
        context.push()
        form_str = render_to_string("django_contactme/form.html", 
                                    {"form": ContactMsgForm() }, 
                                    context)

src/d/j/django-contactme-1.1/django_contactme/tests/forms.py   django-contactme(Download)
import time
 
from django.test import TestCase
 
from django_contactme.forms import ContactMsgSecurityForm, ContactMsgForm
    def test_get_instance_data(self):
        # check get_contact_msg raises ValueError when form is not valid
        form = ContactMsgForm()
        name = 'Alice Bloggs'
        email = 'alice.bloggs@example.com'
        data = {'name': name, 'email': email, 'message': MESSAGE }
        data.update(form.initial)
        form = ContactMsgForm(data=data)

src/d/j/django-contactme-HEAD/django_contactme/tests/forms.py   django-contactme(Download)
import time
 
from django.test import TestCase
 
from django_contactme.forms import ContactMsgSecurityForm, ContactMsgForm
    def test_get_instance_data(self):
        # check get_contact_msg raises ValueError when form is not valid
        form = ContactMsgForm()
        name = 'Alice Bloggs'
        email = 'alice.bloggs@example.com'
        data = {'name': name, 'email': email, 'message': MESSAGE }
        data.update(form.initial)
        form = ContactMsgForm(data=data)