Yes I can access the directories. Here's the traceback:
Traceback (most recent call last):
File "/usr/lib/python2.7/wsgiref/handlers.py", line 85, in run
self.result = application(self.environ, self.start_response)
File
"/usr/local/lib/python2.7/dist-packages/django/core/handlers/wsgi.py", line
241, in __call__
response = self.get_response(request)
File
"/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line
153, in get_response
response = self.handle_uncaught_exception(request, resolver,
sys.exc_info())
File
"/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line
228, in handle_uncaught_exception
return callback(request, **param_dict)
File "/usr/local/lib/python2.7/dist-packages/django/utils/decorators.py",
line 91, in _wrapped_view
response = view_func(request, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/django/views/defaults.py",
line 32, in server_error
t = loader.get_template(template_name) # You need to create a 500.html
template.
File "/usr/local/lib/python2.7/dist-packages/django/template/loader.py",
line 145, in get_template
template, origin = find_template(template_name)
File "/usr/local/lib/python2.7/dist-packages/django/template/loader.py",
line 138, in find_template
raise TemplateDoesNotExist(name)
TemplateDoesNotExist: 500.html
[17/Aug/2012 10:11:59] "GET / HTTP/1.1" 500 59
On Tuesday, 14 August 2012 14:54:45 UTC+1, ephan wrote:
>
> Have you checked the permissions of the directory and template
> files?
> run ls -l in the parent directory of the template folder and inside
> the folder itself .
> madala wrote:
> > Have followed tutorial 2 instructions carefully. So far everything has
> > worked as described in tutorials but cannot get django to load files
> from
> > my own template directory. Seems a very simple problem.
> >
> > here's the part of my settings.py:
> >
> > TEMPLATE_DIRS = (
> > '/home/madala/WebsiteCode/templates',
> > "/home/madala/Website/templates",
> > # Put strings here, like "/home/html/django_templates" or
> > "C:/www/django/templates".
> > # Always use forward slashes, even on Windows.
> > # Don't forget to use absolute paths, not relative paths.
> > )
> >
> > So I carried on and started tutorial 3 till I got halfway down and had
> to
> > do same thing but no matter what I try can't get Django to recognize my
> > directories.
> >
> > Can anyone see where I am going wrong please? thanks in anticipation.
>
--
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/-/ZY30B5nRAEkJ.
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/django-users?hl=en.