summaryrefslogtreecommitdiff
path: root/pecan/templates/project/+package+/model/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'pecan/templates/project/+package+/model/__init__.py')
-rw-r--r--pecan/templates/project/+package+/model/__init__.py13
1 files changed, 11 insertions, 2 deletions
diff --git a/pecan/templates/project/+package+/model/__init__.py b/pecan/templates/project/+package+/model/__init__.py
index 3d75b92..85b1eb3 100644
--- a/pecan/templates/project/+package+/model/__init__.py
+++ b/pecan/templates/project/+package+/model/__init__.py
@@ -1,5 +1,14 @@
from pecan import conf
def init_model():
- # Read and parse database bindings from pecan.conf
- pass \ No newline at end of file
+ """
+ This is a stub method which is called at application startup time.
+
+ If you need to bind to a parse database configuration, set up tables or
+ ORM classes, or perform any database initialization, this is the
+ recommended place to do it.
+
+ For more information working with databases, and some common recipes,
+ see http://pecan.readthedocs.org/en/latest/databases.html
+ """
+ pass