2009/9/13 JorgeP <[email protected]>: > > hola grupo, soy nuevo programando en google engine, pues mi pregunta > es la siguiente > he estado configurando el inicio de sesión para que al momento de > subir mi aplicación solo tengan acceso las personas que sean creadas > dentro de está... que no tengan cuentas en google... > > he seguido un ejemplo de un articulo que esta publicado el la pagina > de code.google.com pero me sale un error > mi codigo es el siguiente > > setting.py > > MIDDLEWARE_CLASSES = ( > 'django.contrib.sessions.middleware.SessionMiddleware', > # Django authentication > 'django.contrib.auth.middleware.AuthenticationMiddleware', > # Google authentication > #'ragendja.auth.middleware.GoogleAuthenticationMiddleware', > # Hybrid Django/Google authentication > #'ragendja.auth.middleware.HybridAuthenticationMiddleware', > > ) > > INSTALLED_APPS = ( > 'django.contrib.auth', > 'django.contrib.sessions', > 'django.contrib.admin', > ) > > > views.py > > from django.contrib.auth.models import User > from django.contrib.auth.forms import UserCreationForm > ##################################################################### > > def crear_nuevo_usuario (request): > form = UserCreationForm() > if request.method == 'POST': > form = UserCreationForm(request.POST) > if form.is_valid(): > user = form.save(commit=False) > user.is_active = True > user.put() > return HttpResponseRedirect('/login/') > return shortcuts.render_to_response('crear_usuario.html', {'form': > form}) > > url.py > > (r'^signup/$', 'views.crear_nuevo_usuario'), > (r'^login/$', 'django.contrib.auth.views.login', {'template_name': > 'crear_usuario.html'}), > (r'^logout/$', 'django.contrib.auth.views.logout_then_login', > {'login_url': '/'}), > > > y pues me devuelve un error "You haven't set the DATABASE_ENGINE > setting yet." > > le agradesco de ante mano...
I do not suppose there are some language specific groups for appengine that we could link him to? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~----------~----~----~----~------~----~------~--~---
