If you're sure your error appears at the "txt=" line, look at the 
definition for that template. There is a good chance it's trying to pull in 
a template (via an include, or a extends) that doesn't exist.

If you need more debugging, you can always modify the LOGGING variable to 
drop a bunch of logging into a file onto the web server.


On Monday, November 19, 2012 3:12:56 PM UTC-6, rmschne wrote:
>
> I have moved to a new laptop which is both my development and production 
> platform. The only change in infrastructure is that I run Python, Django, 
> and all else in a virtual environment (VirtualEnv).  
>
> I am not using Django to run on a web server.  
>
> I have a function which produces a set of HTML files.  The first calls
>
> t=get_template('soc_ad_host_and_guest_list.html')  
> txt=smart_str(t.render(Context({ ... more stuff })))
>
> and the above works fine.
>
> On the second call to a different template which a) does exist, and b) is 
> in the template folder defined by TEMPLATE_DIRS,
>
>  t=get_template('soc_ad_table_guest_list_for_prog.html')
>  txt=smart_str(t.render(Context({'host_list': hostlist,})))and at the 
> statement txt= I get the Django Error: TemplateDoesNotExist
>
> Since I'm not on a web server I can't see the so-called "post mortem" 
> message.  But the template files 'soc_ad_table_guest_list_for_prog.html' 
> does indeed exist, its permissions are 770 (same as the first template that 
> does work).
>
> Suggestions? Any more debugging I can turn on?
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/D-DylhqNxtkJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to