If it's just just a static html page you want to show using none of
the template functions it may be worth it to just serve it from the
webserver (directly by apache or lighttpd, or whatever you are using)
instead of handling the request with the Django dispatch mechanism.

regards
Bert

On Sep 22, 6:24 am, Greg <[EMAIL PROTECTED]> wrote:
> Ok,
> Very easy question here.  Is there anyway that I can directly call
> my .htm file from within my urls.py file?
>
> Now, I have the following:
>
> (r'^customer_care/$', 'mysite.rugs.views.customer_care'),
>
> def customer_care(request):
>         return render_to_response('customer_care.html', {})
>
> /////////////
>
> As you can see my view does nothing except call a .html file.  Is
> there anyway I can do this is my urls.py file so that I can delete the
> customer_care function in views.py all together?
>
> Thanks


--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to