After some minor problems that happened with GAE my app throws error
Traceback (most recent call last):
File "/base/python_lib/versions/1/google/appengine/ext/webapp/
__init__.py", line 507, in __call__
handler.get(*groups)
File "/base/data/home/apps/contacts-exporter/1-01a.
337517615887767102/contacts-list.py", line 197, in get
self.response.out.write(template.render(path, template_values))
File "/base/python_lib/versions/1/google/appengine/ext/webapp/
template.py", line 80, in render
t = load(template_path, debug)
File "/base/python_lib/versions/1/google/appengine/ext/webapp/
template.py", line 108, in load
template = django.template.loader.get_template(file_name)
File "/base/python_lib/versions/third_party/django-0.96/django/
template/loader.py", line 80, in get_template
template = get_template_from_string(source, origin, template_name)
File "/base/python_lib/versions/third_party/django-0.96/django/
template/loader.py", line 88, in get_template_from_string
return Template(source, origin, name)
File "/base/python_lib/versions/third_party/django-0.96/django/
template/__init__.py", line 158, in __init__
self.nodelist = compile_string(template_string, origin)
File "/base/python_lib/versions/third_party/django-0.96/django/
template/__init__.py", line 174, in compile_string
return parser.parse()
File "/base/python_lib/versions/third_party/django-0.96/django/
template/__init__.py", line 273, in parse
compiled_result = compile_func(self, token)
File "/base/python_lib/versions/third_party/django-0.96/django/
template/defaulttags.py", line 660, in do_if
boolvars.append((False, parser.compile_filter(boolpair)))
File "/base/python_lib/versions/third_party/django-0.96/django/
template/__init__.py", line 338, in compile_filter
return FilterExpression(token, self)
File "/base/python_lib/versions/third_party/django-0.96/django/
template/__init__.py", line 558, in __init__
raise TemplateSyntaxError, "Could not parse the remainder: %s" %
token[upto:]
TemplateSyntaxError: Could not parse the remainder: ()
Code is same, what could be a problem?
This is my MainPage class.
class MainPage(webapp.RequestHandler):
def get(self):
user = users.get_current_user()
if user:
text = 'Hello, ' + user.nickname()
SyncPrivateEntity(user.email())
## Loading lists from datastore
listc = getContacts(user, prvEmailsList)
sharedlist = getContacts()
template_values = {'text' : text,
'listc' : listc,
'sharedlist' : sharedlist}
else:
self.redirect(users.create_login_url(self.request.uri))
path = os.path.join(os.path.dirname(__file__),
'index.html')
self.response.out.write(template.render(path, template_values))
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---