On Jun 11, 7:12 am, lalaba <seanfe...@gmail.com> wrote: > Hi all, > I am wondering how I can serve an html file without having to have > Django think it's a template file. > > In my html file, because there are markups that confuse Django, I'd > like to serve it as it is. I tried to read the html file directly into > Django, and use HttpRespont(htmlText) to get around Django. But Django > keeps giving me error message: "No such file or directory". > > I appreciate your helps. > > --l
Django won't think anything is a template unless you explicitly load it as one and render it. If you want to load it and serve it, you can just do so. But you don't show enough code above to know what's actually going wrong. Note that this is a very inefficient way to do things - you'd be better off serving your file outside of Django, in the same way as you serve your static assets. -- DR. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.