That's it. Thanks! On 8 nov, 15:53, Robert Kluin <robert.kl...@gmail.com> wrote: > You might want to try installing and running with Python 2.5. Seems > to clear up quite a few of these issues. > > Robert > > > > > > > > On Sat, Nov 6, 2010 at 17:04, Jorge Guberte <jorgegube...@gmail.com> wrote: > > Hi. > > On the localhost, users.create_login_url('/') redirects me to a page > > where i get a bunch of errors: > > --> --> --> > > Traceback (most recent call last): > > File "C:\Program Files\Google\google_appengine\google\appengine\tools > > \dev_appserver.py", line 3211, in _HandleRequest > > self._Dispatch(dispatcher, self.rfile, outfile, env_dict) > > File "C:\Program Files\Google\google_appengine\google\appengine\tools > > \dev_appserver.py", line 3154, in _Dispatch > > base_env_dict=env_dict) > > File "C:\Program Files\Google\google_appengine\google\appengine\tools > > \dev_appserver.py", line 527, in Dispatch > > base_env_dict=base_env_dict) > > File "C:\Program Files\Google\google_appengine\google\appengine\tools > > \dev_appserver.py", line 2452, in Dispatch > > CGIDispatcher.Dispatch(self, *args, **kwargs) > > File "C:\Program Files\Google\google_appengine\google\appengine\tools > > \dev_appserver.py", line 2404, in Dispatch > > self._module_dict) > > File "C:\Program Files\Google\google_appengine\google\appengine\tools > > \dev_appserver.py", line 2441, in curried_exec_cgi > > return ExecuteCGI(*args, **kwargs) > > File "C:\Program Files\Google\google_appengine\google\appengine\tools > > \dev_appserver.py", line 2312, in ExecuteCGI > > logging.debug('Executing CGI with env:\n%s', pprint.pformat(env)) > > File "C:\Python27\lib\pprint.py", line 60, in pformat > > return PrettyPrinter(indent=indent, width=width, > > depth=depth).pformat(object) > > File "C:\Python27\lib\pprint.py", line 119, in pformat > > self._format(object, sio, 0, 0, {}, 0) > > File "C:\Python27\lib\pprint.py", line 137, in _format > > rep = self._repr(object, context, level - 1) > > File "C:\Python27\lib\pprint.py", line 230, in _repr > > self._depth, level) > > File "C:\Python27\lib\pprint.py", line 242, in format > > return _safe_repr(object, context, maxlevels, level) > > File "C:\Python27\lib\pprint.py", line 284, in _safe_repr > > for k, v in _sorted(object.items()): > > File "C:\Python27\lib\pprint.py", line 75, in _sorted > > with warnings.catch_warnings(): > > File "C:\Python27\lib\warnings.py", line 327, in __init__ > > self._module = sys.modules['warnings'] if module is None else > > module > > KeyError: 'warnings' > > > When deployed, the link works fine. > > Here's my code: > > > import random > > import os > > from google.appengine.api import users > > from google.appengine.ext import webapp, db > > from google.appengine.ext.webapp import util, template > > from google.appengine.ext.webapp.util import run_wsgi_app > > > class MainHandler(webapp.RequestHandler): > > def get(self): > > url = users.create_login_url('/') > > link = '<a href="%s">Login</a>' % url > > self.response.out.write(link) > > > Any help is appreciated. > > > -- > > You received this message because you are subscribed to the Google Groups > > "Google App Engine" group. > > To post to this group, send email to google-appeng...@googlegroups.com. > > To unsubscribe from this group, send email to > > google-appengine+unsubscr...@googlegroups.com. > > For more options, visit this group > > athttp://groups.google.com/group/google-appengine?hl=en.
-- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.