Resolved:

looks like "Draftboard.html" is not "draftboard.html", but I guess it
is on Winblow platform (at home).

On Oct 10, 7:29 pm, GMan <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm just trying to deploy my first app, which runs fine in the
> development environment on my machine.  However, template.render()
> call is failing to find my html template file.  Note that all other
> html files are being served correctly, however those files are not
> used with the DJango template engine call of template.render().  I
> call them as follows:
>
> self.redirect(''/static/something.html')
>
> All html files are located in a subdirectory mapped to "/static" per
> the app.yaml file (shown at the bottom of this posting).
>
> Here is the Python code:
>
> path = os.path.join(os.path.dirname(__file__), 'draftboard.html')
> self.response.out.write(template.render(path, template_values))
>
> I have also tried:
> path = os.path.join(os.path.dirname(__file__), '/static/
> draftboard.html')
> self.response.out.write(template.render(path, template_values))
>
> The error I get is:
>
> Traceback (most recent call last):
>   File "/base/python_lib/versions/1/google/appengine/ext/webapp/
> __init__.py", line 499, in __call__
>     handler.get(*groups)
>   File "/base/data/home/apps/draftcentral/1.10/Draftboard.py", line
> 135, 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/1/django/template/loader.py", line
> 79, in get_template
>     source, origin = find_template_source(template_name)
>   File "/base/python_lib/versions/1/django/template/loader.py", line
> 72, in find_template_source
>     raise TemplateDoesNotExist, name
> TemplateDoesNotExist: draftboard.html
>
> app.yaml file is:
>
> application: draftcentral
> version: 1
> runtime: python
> api_version: 1
>
> handlers:
> - url: /load
>   script: Loader.py
>
> - url: /static
>   static_dir: staticDir
>
> - url: /stylesheets
>   static_dir: stylesheets
>
> - url: /.*
>   script: DraftCentral.py
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to