diff options
| author | Chris McDonough <chrism@plope.com> | 2012-02-15 17:36:47 -0500 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2012-02-15 17:36:47 -0500 |
| commit | c0b7076cb5ad4dcf5840c95f527955e3483d7cae (patch) | |
| tree | c76d5b5a15e75dc844a11ac90d0b783b8a0da98e | |
| parent | 11f2b29e749456b710863b989da1f1b1fa5edebb (diff) | |
| download | pyramid-c0b7076cb5ad4dcf5840c95f527955e3483d7cae.tar.gz pyramid-c0b7076cb5ad4dcf5840c95f527955e3483d7cae.tar.bz2 pyramid-c0b7076cb5ad4dcf5840c95f527955e3483d7cae.zip | |
handhold more after rendering the sqla scaffold
| -rw-r--r-- | pyramid/scaffolds/__init__.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/pyramid/scaffolds/__init__.py b/pyramid/scaffolds/__init__.py index ab2b3034a..ad5753713 100644 --- a/pyramid/scaffolds/__init__.py +++ b/pyramid/scaffolds/__init__.py @@ -1,5 +1,6 @@ import binascii import os +import sys from pyramid.compat import native_ @@ -52,10 +53,14 @@ class AlchemyProjectTemplate(PyramidTemplate): summary = 'Pyramid SQLAlchemy project using url dispatch' def post(self, command, output_dir, vars): # pragma: no cover val = PyramidTemplate.post(self, command, output_dir, vars) + vars = vars.copy() + vars['output_dir'] = output_dir + vars['pybin'] = os.path.join(sys.exec_prefix, 'bin') self.out('') self.out('Please run the "populate_%(project)s" script to set up the ' - 'SQL database after installing (but before starting) the ' - 'application (e.g. ' - '"$myvirtualenv/bin/populate_%(project)s development.ini".)' + 'SQL database after\ninstalling (but before starting) the ' + 'application.\n\n For example:\n\ncd %(output_dir)s\n' + '%(pybin)s/python setup.py develop\n' + '%(pybin)s/populate_%(project)s development.ini' % vars) return val |
