I'd say that common work flow when creating new web2py applications is: - create a new application trough admin. Name it for example "init" (if you want it to be the default, without touching the routes) or something else - edit it, either trough admin's embedded editor or by other means - once you're done, remove all other applications (even admin), except your own.
The application you create trough admin will be pre-populated with a scaffolding application's contents, ie. it will be the same as the "welcome" application. If you don't want this, simply create a new directory within the applications directory and go from there. This approach is much harder, but it can be done. When you upgrade web2py, your application will not be changed in any way. It won't be touched at all. What ever you change / delete / add will remain so. I find that many users think of the "welcome" application as an integral part of web2py. I don't see it like that at all. It's a great example and it's provided to let everybody start coding faster. There are many useful references in it, good practices, suggestions, etc. But you could be using web2py completely without it. Your application could be completely different than "welcome" was, down to the last css line. You don't need to use anything from the "welcome" app. Don't like Bootstrap? Don't use it. Don't like analytics.js? Don't use it. Etc. I would advise against calling your application "welcome" or editing "welcome" directly, unless you have a valid reason to use this approach. I'd recommend keeping the "welcome" application around as a reference if you need it, but delete it altogether once your application is ready to go public. Further, I'd remove all applications you don't use, even admin. Perhaps keep it as a backup or simply extract it from the web2py archive if/when you need it - once your application is finished and goes public, of course. Not if you use the admin app regularly... Hope this helps. Regards, Ales On Friday, February 15, 2013 5:50:13 PM UTC+1, 黄祥 wrote: > > thank you so much for your detail explaination anthony. > i understand now, so that i'm just focus on the created the layout.html > and created layout_custom.html for example which is often update when the > new vesion is arrive. > -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.