I have a weird problem with flatpages. Everything works fine if I have DEBUG=True in the settings.py. However, when I change DEBUG=False flatpages gives error:
--- Traceback (most recent call last): File "/opt/local/lib/python2.4/site-packages/django/core/servers/basehttp.py", line 272, in run self.result = application(self.environ, self.start_response) File "/opt/local/lib/python2.4/site-packages/django/core/servers/basehttp.py", line 611, in __call__ return self.application(environ, start_response) File "/opt/local/lib/python2.4/site-packages/django/core/handlers/wsgi.py", line 148, in __call__ response = self.get_response(request.path, request) File "/opt/local/lib/python2.4/site-packages/django/core/handlers/base.py", line 95, in get_response return callback(request, **param_dict) File "/opt/local/lib/python2.4/site-packages/django/views/defaults.py", line 79, in page_not_found return http.HttpResponseNotFound(t.render(RequestContext(request, {'request_path': request.path}))) File "/opt/local/lib/python2.4/site-packages/django/template/__init__.py", line 156, in render return self.nodelist.render(context) File "/opt/local/lib/python2.4/site-packages/django/template/__init__.py", line 688, in render bits.append(self.render_node(node, context)) File "/opt/local/lib/python2.4/site-packages/django/template/__init__.py", line 701, in render_node return(node.render(context)) File "/opt/local/lib/python2.4/site-packages/django/template/loader_tags.py", line 63, in render compiled_parent = self.get_parent(context) File "/opt/local/lib/python2.4/site-packages/django/template/loader_tags.py", line 58, in get_parent raise TemplateSyntaxError, "Template %r cannot be extended, because it doesn't exist" % parent TemplateSyntaxError: Template 'base' cannot be extended, because it doesn't exist --- Same error is happening with development server and mod_python. I have 'flatpages/default.hmlt' in my templates and everything seems to be right in the database too. -- Jani --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---