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

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

src/d/j/django-oscar-HEAD/sites/sandbox/apps/gateway/views.py   django-oscar(Download)
 
from apps.gateway import forms
from oscar.apps.customer.forms import generate_username
 
logger = logging.getLogger('gateway')
    def form_valid(self, form):
        real_email = form.cleaned_data['email']
        username = generate_username()
        password = generate_username()
        email = 'dashboard-user-%s@oscarcommerce.com' % username