Application template for Web2Py including JS/CSS minification, logger...
JavaScript Python
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
cache
controllers
cron
databases
languages
models
modules
private
sessions
static
views
.gitignore
ABOUT
LICENSE
README
__init__.py
__init__.pyc

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