Update source files for basiclayout step for Alembic support
1 files deleted
7 files modified
| | |
| | | |
| | | env/bin/pip install -e ".[testing]" |
| | | |
| | | - Configure the database. |
| | | - Initialize the database using Alembic. |
| | | |
| | | env/bin/initialize_tutorial_db development.ini |
| | | - Generate your first revision. |
| | | |
| | | env/bin/alembic -c development.ini revision --autogenerate -m "init" |
| | | |
| | | - Upgrade to that revision. |
| | | |
| | | env/bin/alembic -c development.ini upgrade head |
| | | |
| | | - Load default data. |
| | | |
| | | env/bin/initialize_tutorial_db development.ini |
| | | |
| | | - Run your project's tests. |
| | | |
| | |
| | | # wsgi server configuration |
| | | ### |
| | | |
| | | [alembic] |
| | | # path to migration scripts |
| | | script_location = tutorial/alembic |
| | | file_template = %%(year)d%%(month).2d%%(day).2d_%%(rev)s |
| | | # file_template = %%(rev)s_%%(slug)s |
| | | |
| | | [server:main] |
| | | use = egg:waitress#main |
| | | listen = localhost:6543 |
| | |
| | | # wsgi server configuration |
| | | ### |
| | | |
| | | [alembic] |
| | | # path to migration scripts |
| | | script_location = tutorial/alembic |
| | | file_template = %%(year)d%%(month).2d%%(day).2d_%%(rev)s |
| | | # file_template = %%(rev)s_%%(slug)s |
| | | |
| | | [server:main] |
| | | use = egg:waitress#main |
| | | listen = *:6543 |
| | |
| | | [pytest] |
| | | testpaths = tutorial |
| | | python_files = *.py |
| | | python_files = test*.py |
| | |
| | | CHANGES = f.read() |
| | | |
| | | requires = [ |
| | | 'alembic', |
| | | 'plaster_pastedeploy', |
| | | 'pyramid >= 1.9a', |
| | | 'pyramid_debugtoolbar', |
| | |
| | | 'main = tutorial:main', |
| | | ], |
| | | 'console_scripts': [ |
| | | 'initialize_tutorial_db = tutorial.scripts.initializedb:main', |
| | | 'initialize_tutorial_db = tutorial.scripts.initialize_db:main', |
| | | ], |
| | | }, |
| | | ) |
| | |
| | | Pyramid is having a problem using your SQL database. The problem |
| | | might be caused by one of the following things: |
| | | |
| | | 1. You may need to run the "initialize_tutorial_db" script |
| | | to initialize your database tables. Check your virtual |
| | | environment's "bin" directory for this script and try to run it. |
| | | 1. You may need to initialize your database tables with `alembic`. |
| | | Check your README.txt for description and try to run it. |
| | | |
| | | 2. Your database server may not be running. Check that the |
| | | database server referred to by the "sqlalchemy.url" setting in |
| | |
| | | <h1><span class="font-semi-bold">Pyramid</span> <span class="smaller">Alchemy project</span></h1> |
| | | <p class="lead">Welcome to <span class="font-normal">{{project}}</span>, a Pyramid application generated by<br><span class="font-normal">Cookiecutter</span>.</p> |
| | | </div> |
| | | {% endblock content %} |
| | | {% endblock content %} |