[google-appengine] Re: Need Python example of Template System

2011-10-04 Thread Gillwill
Oops! Of course the code under "def get(self):" should be indented accordingly. = = = = = = = = = = How about this (assumes you have the "helloworld.html" stored in the "templates" subfolder of where your code is) for main.py: from google.appengine.ext import webapp from google.appengine.e

[google-appengine] Re: Need Python example of Template System

2011-10-04 Thread Gillwill
How about this: (assumes you have the "helloworld.html" stored in the "templates" subfolder of where your code is) *for main.py: import os from google.appengine.ext import webapp from google.appengine.ext.webapp import util from google.appengine.ext.webapp import template class MainHandler(

[google-appengine] Re: about error django 1.2 was requested, but 0.96.4.None is already in use

2011-10-04 Thread Gillwill
Another alternative that worked for me, that did not require the "import django", is by putting the following line: os.environ['DJANGO_SETTINGS_MODULE'] = 'settings' right above these lines from google.appengine.dist import use_library use_library('django', '1.2') I think it's also imp