Best way to call javascript and css files are from layout. and then include 
the layout like a sandwich inside index.html (or whatever pages you are 
wishing to use the jss and css).

On Thursday, April 2, 2015 at 7:58:29 PM UTC-4, Derek wrote:
>
> ok first of all, you work with your application and you should just modify 
> your db.py, layout.html and etc. You should not worry about not having the 
> same thing as in the scaffolding in the latest versions, because as you are 
> aware, web2py is fully backwards compatible. So if your application works 
> today in whatever version you are in, it should work with web2py 2.99 or 
> whatever in the future.
>
> second, they are called scaffolding that allow you to build off it. It's 
> like you are building a car with a toothbrush with detachable bristles in 
> case someone builds a better handle. Can't commit to a handle so the 
> bristles sometimes fall off but it can be called a toothbrush.
>
> Look, just grab hold of that scaffolding and tear it to shreds and use it 
> all up like the little piece of kindling that it is. It's just there to get 
> you off the ground, it's not meant to be a foundation from which to build. 
> You should build that, and the good news is 'web2py is backwards 
> compatible' you aren't going to be left in the cold when a new version of 
> web2py comes out...
>
>
>
> On Wednesday, April 1, 2015 at 11:54:52 PM UTC-7, Mirek Zvolský wrote:
>>
>> Hi,
>>
>> I like the approach not start the application from scratch,
>> but to use the scaffolding application: db.py, layout.html, 
>> web2py_ajax.html.
>>
>> To have good possibility to upgrade between web2py versions, it is good 
>> to do no or minimal changes to previous files.
>> So I try to make my own database model: db_model.py, isntead of change 
>> the db.py, and so on.
>> Some minimum changes in previous files are still neccesary - which is bad 
>> :( - but I mark them with some comments like ### my_patch ###.
>>
>> My question is:
>> How (where) to properly call my javascript and my css files?
>>
>> For own javascript it can be done inside the view inside the <body>, 
>> maybe on the top, and maybe with help of {{include...}}
>> Am I correct?
>>
>> But what about own css layout? Is it possible to connect it outside of 
>> the files above? Lets say in own model file?
>>
>> Maybe this will help to other people too.
>> Thanks.
>>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to