2 Star 0 Fork 0

mirrors_Unitech / Web2Py-application-template

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
+								+
		+---------------------- Web2Py Template ------------------------+
		+								+


This Web2Py application template include :

+++++++++++++ CSS/JS combination/minification + App compilation directly on 'appadmin'

1# Include all your JS and CSS files in models/extra.py

    js_files = [
        URL('static', 'js/jquery-1.5.2.js'),
        URL('static', 'js/main.js'),
        URL('static', 'js/shit.js')
        ]
    css_files = [
        URL('static', 'css/base.css')
        ]

2# Then in the view include 
   
   {{include 'layouts/js_css_include_from_extra.html'}}

3# To switch to production or development mode go to :

   http://localhost:8000/[APPLICATION_NAME]/appadmin/state

+++++++++++++ A new tree organization

├── models
│   ├── db.py           // Distinction between Prod or not (disbling migration & co) + Configuration Mail + Auth 
│   ├── db_tables.py    // DB models declaration
│   └── extra.py        // File to include (JS and CSS)
└── views
    ├── appadmin.html
    ├── default
    │   └── index.html
    ├── __init__.py
    └── layouts
        ├── admin_layout.html
        ├── layout.html
        └── web2py_ajax.htm

空文件

简介

取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/mirrors_Unitech/Web2Py-application-template.git
git@gitee.com:mirrors_Unitech/Web2Py-application-template.git
mirrors_Unitech
Web2Py-application-template
Web2Py-application-template
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891