Re: How to call a .htm page without going to the views.py file?

2007-09-22 Thread Bert Heymans
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

Re: How to call a .htm page without going to the views.py file?

2007-09-21 Thread jake elliott
hi greg - you're looking for this: http://www.djangoproject.com/documentation/generic_views/#django-views-generic-simple-direct-to-template best jake Greg 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 ha

How to call a .htm page without going to the views.py file?

2007-09-21 Thread Greg
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', {})