Re: HTML Source on Browser Rendering

2013-01-13 Thread Peter of the Norse
You're looking at the wrong thing. The tags were added by your browser. Chrome and Firefox show cleaned up HTML in firebug/web inspector. In the case of a bad MIME type, it treats it as text, and wraps everything in HTML for displaying. When people say to check the Content-Type header, you shou

Re: HTML Source on Browser Rendering

2013-01-09 Thread Ryoichiro Kamiya
It's been resolved. The following mimetype property in views.py added the tags. return render_to_response('prayer/service_index.html', datadict, mimetype="application/json; charset=utf-8") Thanks, Ryo On Wednesday, January 9, 2013 11:07:14 AM UTC+9, Ryoichiro Kamiya wrote: > > Thanks all for

Re: HTML Source on Browser Rendering

2013-01-08 Thread Ryoichiro Kamiya
Thanks all for seeing this thread. With further experiment, the result shows the HTML source with tag even after emptying the contents of the Django template file. When I tested it in various browsers, the browser automatically added basic HTML structure with tag on top of my contents. I comp

Re: HTML Source on Browser Rendering

2013-01-07 Thread djangobie
Than is the issues, as it 'll display the content (inside it) as it is .. making it preformated. can't guess how you got your code wrapped in it in the first place. Thanks On Tuesday, January 8, 2013 6:29:53 AM UTC+5, Ryoichiro Kamiya wrote: > > Thanks jjmutumi, stauros! > > I am not using "aut

Re: HTML Source on Browser Rendering

2013-01-07 Thread djangobie
Than is the issues, as it 'll display the content (inside it) as it is .. making it preformated. can't guess how you got your code wrapped in it in the first place. Thanks On Tuesday, January 8, 2013 6:29:53 AM UTC+5, Ryoichiro Kamiya wrote: > > Thanks jjmutumi, stauros! > > I am not using "aut

Re: HTML Source on Browser Rendering

2013-01-06 Thread stayros kroustouris
Hello, maybe any "autoescape" template tags on the wrong spot? On Sun, Jan 6, 2013 at 9:46 PM, Joseph Mutumi wrote: > Hello, > > I think you should also check the 'Content-Type' being received client-side > in the HTTP headers. You can use something curl or Firebug. > > > On Sun, Jan 6, 2013 a

Re: HTML Source on Browser Rendering

2013-01-06 Thread Joseph Mutumi
Hello, I think you should also check the 'Content-Type' being received client-side in the HTTP headers. You can use something curl or Firebug. On Sun, Jan 6, 2013 at 1:40 PM, Ryoichiro Kamiya wrote: > Hi, > > I'm testing Django template rendering in development environment, but one > of the pag