Re: 500.html does not load

2009-10-22 Thread NoviceSortOf

>> Traceback error :  TemplateDoesNotExist: 500.html

Thanks for the note Akonsu, I'm looking at my template settings in
settings.py
on my production server and don't see any anomalies. As well all my
other templates load -- so I'm not sure where else to go to trouble
shoot this.

TEMPLATE_LOADERS = (
'django.template.loaders.filesystem.load_template_source',
'django.template.loaders.app_directories.load_template_source',)

TEMPLATE_DIRS = ("/home/mysite/www/myproject/templates",
 "/usr/lib/python2.3/site-packages/django/contrib/
admin/templates",)

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
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
-~--~~~~--~~--~--~---



Re: 500.html does not load

2009-10-22 Thread raj

Hi,

> On Oct 21, 2:50 pm, NoviceSortOf  wrote:
> > Although I have 500.html in my
> > site-packages/django/contrib/admin/templates folder 500.html does not
> > appear when it should, below see my errors (I've included the
> > traceback items below).
>
> > Is there something else I need to configure to get 500.html to load?
> > TemplateDoesNotExist: 500.html

Seems like server is expecting a non-admin template. Just copy that
500.html from contrib/admin/templates to your templates directory
where all other non-admin templates are kept. Let's hope it'll work,
given that you have pointed to that template location from within your
settings.


Rajeesh.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
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
-~--~~~~--~~--~--~---



Re: 500.html does not load

2009-10-21 Thread akonsu

hello,

there is a setting in settings.py that controls where django searches
for templates.

konstantin

On Oct 21, 2:50 pm, NoviceSortOf  wrote:
> Although I have 500.html in my
> site-packages/django/contrib/admin/templates folder 500.html does not
> appear when it should, below see my errors (I've included the
> traceback items below).
>
> Is there something else I need to configure to get 500.html to load?
>
> Mod_python error: "PythonHandler django.core.handlers.modpython"
> 
> 
> Traceback (most recent call last):
>
>   File "/usr/lib/python2.3/site-packages/mod_python/apache.py", line
> 299, in HandlerDispatch
>     result = object(req)
>
>   File "/usr/lib/python2.3/site-packages/django/core/handlers/
> modpython.py", line 222, in handler
>     return ModPythonHandler()(req)
>
>   File "/usr/lib/python2.3/site-packages/django/core/handlers/
> modpython.py", line 195, in __call__
>     response = self.get_response(request)
>
>   File "/usr/lib/python2.3/site-packages/django/core/handlers/
> base.py", line 116, in get_response
>     return self.handle_uncaught_exception(request, resolver,
> sys.exc_info())
>
>   File "/usr/lib/python2.3/site-packages/django/core/handlers/
> base.py", line 160, in handle_uncaught_exception
>     return callback(request, **param_dict)
>
>   File "/usr/lib/python2.3/site-packages/django/views/defaults.py",
> line 88, in server_error
>     t = loader.get_template(template_name) # You need to create a
> 500.html template.
>
>   File "/usr/lib/python2.3/site-packages/django/template/loader.py",
> line 80, in get_template
>     source, origin = find_template_source(template_name)
>
>   File "/usr/lib/python2.3/site-packages/django/template/loader.py",
> line 73, in find_template_source
>     raise TemplateDoesNotExist, name
>
> TemplateDoesNotExist: 500.html
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
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
-~--~~~~--~~--~--~---



500.html does not load

2009-10-21 Thread NoviceSortOf


Although I have 500.html in my
site-packages/django/contrib/admin/templates folder 500.html does not
appear when it should, below see my errors (I've included the
traceback items below).

Is there something else I need to configure to get 500.html to load?

Mod_python error: "PythonHandler django.core.handlers.modpython"


Traceback (most recent call last):

  File "/usr/lib/python2.3/site-packages/mod_python/apache.py", line
299, in HandlerDispatch
result = object(req)

  File "/usr/lib/python2.3/site-packages/django/core/handlers/
modpython.py", line 222, in handler
return ModPythonHandler()(req)

  File "/usr/lib/python2.3/site-packages/django/core/handlers/
modpython.py", line 195, in __call__
response = self.get_response(request)

  File "/usr/lib/python2.3/site-packages/django/core/handlers/
base.py", line 116, in get_response
return self.handle_uncaught_exception(request, resolver,
sys.exc_info())

  File "/usr/lib/python2.3/site-packages/django/core/handlers/
base.py", line 160, in handle_uncaught_exception
return callback(request, **param_dict)

  File "/usr/lib/python2.3/site-packages/django/views/defaults.py",
line 88, in server_error
t = loader.get_template(template_name) # You need to create a
500.html template.

  File "/usr/lib/python2.3/site-packages/django/template/loader.py",
line 80, in get_template
source, origin = find_template_source(template_name)

  File "/usr/lib/python2.3/site-packages/django/template/loader.py",
line 73, in find_template_source
raise TemplateDoesNotExist, name

TemplateDoesNotExist: 500.html

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
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
-~--~~~~--~~--~--~---