The invention discloses a
tornado framework-based
project organization method and
system. The method comprises the steps of firstly dividing a file structure of a project into three-level directories,wherein the
root directory is used for storing a
root directory configuration file and a total
route file, each intermediate-level
directory is used for storing a business, intermediate-level directories perform respective storage and serve as bottom layer directories, each bottom layer
directory comprises a controller folder and a
route file in a
tornado framework, and the controller folders areused for storing codes related to corresponding businesses in the
tornado framework; and writing a function in the total
route file, reading the route files in the intermediate-level directories respectively according to paths of the intermediate-level directories, filtering headers of the route files, reserving
list parts of urls, combining the reserved
list parts of the urls, and storing a
combined result in the total route file to serve as a total route. The
project organization method and
system is simple in logic, high in universality and low in maintenance cost.