TurboGears / tgext.pluggable

Pluggable applications support for TurboGears2
11 stars 13 forks source link

first_init code assumes model attribute on config #7

Closed kadams54 closed 11 years ago

kadams54 commented 11 years ago

Right now the code that runs on first_init assumes that there will be a model configured in config. While that's the case in the quickstart app:

base_config.model = example.model

It's not necessarily true in all TurboGears apps, particularly those that eschew a SQL datastore.