* basic SQLAlchemy model
* menu handling code * SQLAlchemy setup in environent.py, base.py and websetup.py
This commit is contained in:
parent
292c102db8
commit
096df406b8
9 changed files with 125 additions and 5 deletions
|
@ -7,6 +7,9 @@ import gnuviechadminweb.lib.app_globals as app_globals
|
|||
import gnuviechadminweb.lib.helpers
|
||||
from gnuviechadminweb.config.routing import make_map
|
||||
|
||||
from sqlalchemy import engine_from_config
|
||||
from gnuviechadminweb.model import init_model
|
||||
|
||||
def load_environment(global_conf, app_conf):
|
||||
"""Configure the Pylons environment via the ``pylons.config``
|
||||
object
|
||||
|
@ -31,3 +34,5 @@ def load_environment(global_conf, app_conf):
|
|||
|
||||
# CONFIGURATION OPTIONS HERE (note: all config options will override
|
||||
# any Pylons config options)
|
||||
engine = engine_from_config(config, 'sqlalchemy.')
|
||||
init_model(engine)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue