Hi,
Finally - I got comments to work - but not correctly :-(
Django version - svn:9003
Urls conf ..
(r'^comments/', include('django.contrib.comments.urls')),
I tried everything:
- Deleted django/contrib/comments*.pyc files (a number of times)
- updated to svn latest (a number of times :) )
I finally got an idea from another thread in this group - where
someone said if they manually added the django.contrib.comments.urls
directly to their app url conf then it worked. I did that - and I got
it working too.
But that leaves my wondering why I can't it working the way it's
documented.
One thing that I noticed is that the django/contrib/comments/urls.py
is not getting imported (no pyc file is being created).
So the problem I am having must be due to URL confs, and more than
likely to this urlconf not being included correctly :-(
The following doesn' t work in my app urls.py...
urlpatterns += patterns('',
(r'^comments/', include('django.contrib.comments.urls')),
)
But in the same app urls.py the following DOES work...
urlpatterns += patterns('django.contrib.comments.views',
url(r'^comments/post/$', 'comments.post_comment',
name='comments-post-comment'),
url(r'^comments/posted/$', 'comments.comment_done',
name='comments-comment-done'),
url(r'^comments/flag/(\d+)/$', 'moderation.flag',
name='comments-flag'),
url(r'^comments/flagged/$', 'moderation.flag_done',
name='comments-flag-done'),
url(r'^comments/delete/(\d+)/$', 'moderation.delete',
name='comments-delete'),
url(r'^comments/deleted/$', 'moderation.delete_done',
name='comments-delete-done'),
url(r'^comments/moderate/$', 'moderation.moderation_queue',
name='comments-moderation-queue'),
url(r'^comments/approve/(\d+)/$', 'moderation.approve',
name='comments-approve'),
url(r'^comments/approved/$', 'moderation.approve_done',
name='comments-approve-done'),
)
urlpatterns += patterns('',
url(r'^comments/cr/(\d+)/(\w+)/$',
'django.views.defaults.shortcut', name='comments-url-redirect'),
)
Any ideas?
Thanks
Mark
--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---