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
doubts on cherrypy
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
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
 
ram_ganeshu  
View profile  
 More options May 14 2012, 4:05 am
From: ram_ganeshu <guruganes...@gmail.com>
Date: Mon, 14 May 2012 01:05:38 -0700 (PDT)
Local: Mon, May 14 2012 4:05 am
Subject: doubts on cherrypy
Hi...all,
   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?)?
                                     One more is i want to call
directly a html file, that is navigation from one html file to another
html file, is it possible?(i want to call a static html file, from my
another html file) instead of writing a method to call a static
file...
                        please help me to find out....Thanks in
advance.....

 
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.
eugene.vandenbu...@gmail.com  
View profile  
 More options May 14 2012, 4:19 am
From: eugene.vandenbu...@gmail.com
Date: Mon, 14 May 2012 18:19:22 +1000
Local: Mon, May 14 2012 4:19 am
Subject: Re: [cherrypy-users] doubts on cherrypy
You could use serve_file in index to return a html file and the staticdir tool for all other html files you want to link to.

EuGeNe -- follow me on http://twitter.com/3kwa

On 14/05/2012, at 6:05 PM, ram_ganeshu <guruganes...@gmail.com> wrote:


 
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.
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.
GaneshPandi  
View profile  
 More options May 15 2012, 1:10 am
From: GaneshPandi <guruganes...@gmail.com>
Date: Tue, 15 May 2012 10:40:38 +0530
Local: Tues, May 15 2012 1:10 am
Subject: Re: [cherrypy-users] doubts on cherrypy

why...in the sense, my doubt is that...so it is fixed? we have to to use
index () only, for index page...

--
---G.GaneshPandi---

 
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.
Alan Pound  
View profile  
 More options May 15 2012, 5:05 am
From: "Alan Pound" <Alan.Po...@ACULAB.COM>
Date: Tue, 15 May 2012 10:05:11 +0100
Local: Tues, May 15 2012 5:05 am
Subject: RE: [cherrypy-users] doubts on cherrypy

Not fixed - it never was broken.

As described, this business about "index.html" is a bit of pandering to an old convention.

You can of course use any name as an initial or subsequent landing page.

Alan

  winmail.dat
4K Download

 
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.
Tim Roberts  
View profile  
 More options May 15 2012, 1:13 pm
From: Tim Roberts <t...@probo.com>
Date: Tue, 15 May 2012 10:13:01 -0700
Local: Tues, May 15 2012 1:13 pm
Subject: Re: [cherrypy-users] doubts on cherrypy

GaneshPandi wrote:
> why...in the sense, my doubt is that...so it is fixed? we have to to
> use index () only, for index page...

I'm sorry, I don't understand the question.

"index" is just a convention.  If you are using Apache as a front-end,
you can change the name of the default page using the DirectoryIndex
directive in your .htaccess file.

Also, remember that you aren't REQUIRED to support an index page.  If
you know that every request to your CherryPy site will include a page
name, then you don't need index().  It all depends on what you need to
provide to your users.

--
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.
End of messages
« Back to Discussions « Newer topic     Older topic »