Hello,
I tried to implement basic free comments into my web apps using the
following links :
    http://www.rossp.org/blog/2006/feb/17/building-blog-django-3/
    http://www.dobbes.com/blog/2005/jul/23/django_comments/

I got the "comments post comments" displaying well
(check http://ozserver.no-ip.com:345/cefinban/recettes click on a
recipe)

However when  i submit  "comment preview"  i get the following error:
------------------------------------------
TemplateDoesNotExist at /comments/postfree/
comments/free_preview
Request Method:         POST
Request URL:    http://127.0.0.1/comments/postfree/
Exception Type:         TemplateDoesNotExist
Exception Value:        comments/free_preview
Exception Location:
        
/usr/lib/python2.4/site-packages/Django-0.91-py2.4.egg/django/core/template/loader.py
in find_template_source, line 65


Template-loader postmortem

Django tried loading these templates, in this order:

    * Using loader
django.core.template.loaders.filesystem.load_template_source:
          o
/home/greg/Projects/cefinban/templates/comments/free_preview.html (File
exists)
    * Using loader
django.core.template.loaders.app_directories.load_template_source:
          o
/usr/lib/python2.4/site-packages/Django-0.91-py2.4.egg/django/contrib/admin/templates/comments/free_preview.html
(File does not exist)

------------------------------------------

Why does it tried the first good location
/home/greg/Projects/cefinban/templates/comments/free_preview.htm, then
the second one which is wrong and still come up with an error... it
founds one it should stick to it.

also, the line {% free_comment_form for recettes.recettes recette.slug
%} in my detail template,
create the comments html form using :

<form action="/comments/postfree/" method="post">
[...]
</form>

is there a way of changing "/comments/postfree/",  since because of
this i need to change my httpd.conf by adding location comments, its
annoying.

<VirtualHost *>
        ServerAdmin [EMAIL PROTECTED]
        ServerName cefinban
        <Location "/cefinban">
            SetHandler python-program
            PythonHandler django.core.handlers.modpython
            PythonPath sys.path+['/home/greg/Projects']
            SetEnv DJANGO_SETTINGS_MODULE cefinban.settings
            PythonDebug On
        </Location>

        <Location "/comments/">
                SetHandler python-program
                PythonHandler django.core.handlers.modpython
                PythonPath sys.path+['/home/greg/Projects']
                SetEnv DJANGO_SETTINGS_MODULE cefinban.settings
                PythonDebug On
        </Location>

        Alias /media "/var/www/cefinban/media"
        <Location "/media/">
                SetHandler None
        </Location>
</VirtualHost>

thank you !.


--~--~---------~--~----~------------~-------~--~----~
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