Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion doubts on cherrypy
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Tim Roberts  
View profile  
 More options May 14 2012, 2:19 pm
From: Tim Roberts <t...@probo.com>
Date: Mon, 14 May 2012 11:19:08 -0700
Local: Mon, May 14 2012 2:19 pm
Subject: Re: [cherrypy-users] doubts on cherrypy

ram_ganeshu wrote:
>    I am using cherrypy more than 2 months, now i am having strange
> doubt, is it necessary we should use def index(), for our index
> page....(exact name index(), we can't use other names?)?

Why would you want to?

Here's the issue.  Web requests need to end up with files, not
directories.  When a web request arrives for a directory (like
"http://www.website.com/" or "http://www.website.com/folder/"), Apache
rewrites that to refer to "index.html".  (The exact list is in your
Apache configuration files.)  That's where this convention comes from.

--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.