Re: How to serve a static html file instead of rendering it as a template.
I think it is all explained in here : http://docs.djangoproject.com/en/dev/howto/static-files/
As mentionned by every body around...
It is ok in DEV but ... you should not do so in other environment.
\T,
On Jun 11, 8: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
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home