|
I'm going through a Django book and I seem to be stuck. The code base used in the book is .96 and I'm using 1.0 for my Django install. The portion I'm stuck at is related to Django comments (django.contrib.comments). When I submit my comments I get "Comment...
Started by kfordham281 on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
It's not just the comments, but whole areas of Django are completely different from 0.96 my comment successfully....
Included with Django itself and that got me past the "Comment post not allowed (400)" message and posted book.
|
|
Was just looking at a a question on SO where other people had posted comments yet i was unable to post a comment. What is going on here? Does it have anything to do with the fact that the question had been turned into a wiki?
Started by Lumpy on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
You need 50 rep to post comments, except....
See the faq for details.
Commenting on other people's answers requires a minimum point reputation (to help prevent spamming and other abuses).
Before you can post comments.
|
|
Hi,
Is it possible to print out (PHP) all my blog posts + associated comments via one sql query?
If so, how?
I was thinking in this direction:
SELECT p.post_id, p.title, c.comment_body FROM posts p LEFT JOIN comments c ON c.parent_id = p.post_id
But this...
Started by Bundy on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
"<br />\n"; $comment_id=1; $lastpost=$r['post_id']; } print query is ....
$r['title'].
When) { print "Post: " .
And print the comments for each post, taking the post title from the first row in the group.
|
Ask your Facebook Friends
|
I need to construct some rather simple SQL, I suppose, but as it's a rare event that I work with DBs these days I can't figure out the details.
I have a table 'posts' with the following columns:
id, caption, text
and a table 'comments' with the following...
Started by Morten Christiansen on
, 8 posts
by 8 people.
Answer Snippets (Read the full thread at stackoverflow):
Of corresponding comments , such that you can simply do
SELECT p.caption FROM posts p WHERE comment_count > id IN (SELECT post_id FROM comments HAVING count(*) > 0)
select p.caption, count(c.id * FROM posts....
|
|
What is the most efficient way to determine how many comments a particular blog post has? We want to store the data for a new web app. We have a list of permalink URl's as well as the RSS feeds.
Started by Caleb Elston on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
If it's a remote blog, you have the problem that each and looks for repeating elements like ... .
If the blog is controlled by you, a "Select count(commentid) FROM comments WHERE postID = 2 to join the comments to the posts from a URL.
|
|
I'm using ASP.net and an SQL database. I have a blog like system where a number of comments are made against a post and I want to display the number of those comments next to the post. To get that number I could either hold it in the post record and add...
Started by Jack Mills on
, 9 posts
by 9 people.
Answer Snippets (Read the full thread at stackoverflow):
Data model looks...Don't add the total post count to the main thread record, it is error prone, you should calculate the comment count when needed based on the thread ID, IMHO
Caching the pages and updating that cache as comments....
|
|
Hi there,
Let's say I run a website giving the oportunity to users to put content online (some comments for ex...) and that I run this website under several languages / countries (locale). In addition, I don't need the comments to be accessible from a...
Started by bsagols on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Of course, another point to consider....
An index on the language column (unless of course you have a need to retrieve comments based on the language), but may be by the associated id (for example, your comment may be related to another object).
|
|
Washington post article on NPs -- PAs! submit your comments to the washington post! article NPs planted in washingto post based of their good lobbying machine:
http://www.washingtonpost.com/nation...all_comments
logging-in and submitting comments to...
Started by kittryn on
, 15 posts
by 9 people.
Answer Snippets (Read the full thread at Com):
I don't want to register to post a comment, but I am seethingRe: washington post article on NPs -- PAs! submit your comments to the washington pos I have: washington post article ....
I read most of the comments.
|
|
If I post a comment like "hello there dog" it works great, but if there are any special characters like ' or " the comment is posted successfully to the database but the jQuery code is not displaying the comment in the list.
Thanks for any tips.
function...
Started by nobosh on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Thus do something like:
StringBuilder comment = new StringBuilder(); comment.append("<div class=\"comment\">"); comment.append(escapeHTML....
Try something like:
$.post("/feedback/ajax/insert/", {feedback: escape(textsubmitted as-is).
|
|
How can I automatically replace all C style comments (/* comment */) by C++ style comments (// comment)? This has to be done automatically in several files. Any solution is ok, as long as it works.
Started by compie on
, 10 posts
by 10 people.
Answer Snippets (Read the full thread at stackoverflow):
Emacs has a comment details from the comments from the OP
The fundamental reason of preferring C++-style comment is that you can comment out....
Do the trick quicker in practice, unless there's a whole load of comments.
|