I'm new to CherryPy, coming from Django. I liked the way Django split the various parts of the project into many files, and I'd like to do the same in CherryPy, instead of having one big file.
I think it would be great if I could split the project in these parts:
- application.py : The core of CherryPy, where the server starts
- urls.py : Containing all the urls, probably using RoutesDispatcher
- models.py : Via SQLAlchemy, containing all the models
- controllers.py : Pretty obvious ;)
I'm not asking for a complete code paste here, a link to an example/pastebin/gist is perfect too :)
Thanks for your help.