I am still having problem with Django flatepages and here is the error:
I am using appach server and i didn't write anything in the url.py or
even in the view.py i just added in the setting.py file the 
in the middle class:
   "django.contrib.flatpages.middleware.FlatpageFallbackMiddleware",

and in the installed applicatins:
'django.contrib.flatpages',
what else should i do :(


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

Traceback (most recent call last):

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

  File 
"/usr/lib/python2.4/site-packages/Django-0.91-py2.4.egg/django/core/handlers/modpython.py",
 line 165, in handler
    return ModPythonHandler()(req)

  File 
"/usr/lib/python2.4/site-packages/Django-0.91-py2.4.egg/django/core/handlers/modpython.py",
 line 139, in __call__
    response = self.get_response(req.uri, request)

  File 
"/usr/lib/python2.4/site-packages/Django-0.91-py2.4.egg/django/core/handlers/base.py",
 line 95, in get_response
    return callback(request, **param_dict)

  File 
"/usr/lib/python2.4/site-packages/Django-0.91-py2.4.egg/django/views/defaults.py",
 line 58, in page_not_found
    t = loader.get_template(template_name)

  File 
"/usr/lib/python2.4/site-packages/Django-0.91-py2.4.egg/django/core/template/loader.py",
 line 73, in get_template
    return get_template_from_string(*find_template_source(template_name))

  File 
"/usr/lib/python2.4/site-packages/Django-0.91-py2.4.egg/django/core/template/loader.py",
 line 66, in find_template_source
    raise TemplateDoesNotExist, name

TemplateDoesNotExist: 404






On Mon, 2006-02-20 at 23:40 +0000, kmh wrote:
> Mary Adel wrote:
> > I have anither questions on the flatepage
> > Does the flat page need any configuration for the url.py file or no
> > cause i made a faltepage but it didn't appear in the browser so i really
> > don't know the steps to make it appear in the browser
> 
> If you've added:
> 
> django.contrib.flatpages.middleware.FlatpageFallbackMiddleware
> 
> to your middleware list as in the documentation then that is all you
> need.  There is no URL hook because flatpages work as middleware by
> catching 404 responses and seeing if there is a corresponding flatpage
> and serving that instead.  It's been a while since I used them but I
> think you need to make sure you have a trailing slash on the URL in the
> admin.
> 
> If you are running Django from SVN then there is a chance that you are
> seeing the bug that Tom caught in #1376.  It is now fixed so just do
> svn update
> 
> Kieran
> 
> 
> 
> 


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

Reply via email to