File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ def getComments(request):
48
48
"post_id" : obj .post_id ,
49
49
}
50
50
comments .append (commentCurr )
51
- return comments
51
+ print comments
52
+ return render_to_response ('index.html' ,comments )
52
53
53
54
Original file line number Diff line number Diff line change 2
2
< link rel ="stylesheet " type ="text/css " href ="{% static 'css/style.css' %} ">
3
3
4
4
< div id ="content "> </ div >
5
+ < script src ="http://code.jquery.com/jquery-1.10.0.min.js "> </ script >
5
6
< script type ="text/jsx ">
6
7
/** @jsx React.DOM */
7
8
var CommentBox = React . createClass ( {
15
16
success : function ( data ) {
16
17
console . log ( 'in - ' + data ) ;
17
18
this . setState ( { data : data } ) ;
19
+ console . log ( 'data - ' + data ) ;
18
20
} . bind ( this ) ,
19
21
error : function ( xhr , status , err ) {
20
22
console . log ( 'out' ) ;
21
- console . error ( '' , status , err . toString ( ) ) ;
23
+ console . error ( ' ' , status , err ) ;
22
24
} . bind ( this )
23
25
} ) ;
24
26
} ,
@@ -114,5 +116,4 @@ <h1>Comments</h1>
114
116
</ script >
115
117
< script src ="http://fb.me/react-0.11.1.js "> </ script >
116
118
< script src ="http://fb.me/JSXTransformer-0.11.1.js "> </ script >
117
- < script src ="http://code.jquery.com/jquery-1.10.0.min.js "> </ script >
118
119
< script src ="http://cdnjs.cloudflare.com/ajax/libs/showdown/0.3.1/showdown.min.js "> </ script >
You can’t perform that action at this time.
0 commit comments