In the webpages folder you can keep all your webpages.
In Genropy, a webpage is written as a Python file; in particular, the class that handles all the stuff you need for a webpage is the GnrCustomWebPage class - in the next page we’ll describe this class.
When you create a project, you (probably) will create the following webpages:
A login page. For more information, check the loginUrl() section
An index page. You can build your own index, or you can use a component that handles it, like the FrameIndex
Note
by default, the name of the first page loaded has to be index.py. You can change this default using the homepage attribute of the <wsgi> tag of the siteconfig file
A set of webpages related to some database tables
Note
when you create a webpage that is related to a table, please name it following this convention:
tableName + ``_page.py``example: if you have a table called staff.py, call the webpage staff_page.py.
This convention allows to keep order in your project.
A set of webpages not related to database tables used for other services