Skip to content

Commit

Permalink
Automatic database name in builtin configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
pylover committed Sep 21, 2019
1 parent 0ffb4b2 commit 5bab650
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions restfulpy/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,20 @@
db:
# The main uri
url: postgresql://postgres:postgres@localhost/restfulpy_demo
url: postgresql://postgres:postgres@localhost/%(process_name)s
# Will be used to create and drop database(s).
administrative_url: postgresql://postgres:postgres@localhost/postgres
# Will be used to run tests
test_url: postgresql://postgres:postgres@localhost/restfulpy_test
test_url: postgresql://postgres:postgres@localhost/%(process_name)s_test
# Redirect all SQL Queries to std-out
echo: false
migration:
directory: migration
ini: alembic.ini
directory: %(root_path)s/migration
ini: %(root_path)s/alembic.ini
jwt:
secret: JWT-SECRET
Expand Down

0 comments on commit 5bab650

Please sign in to comment.