18 lines
369 B
Python
18 lines
369 B
Python
from piccolo.engine.postgres import PostgresEngine
|
|
|
|
from piccolo.conf.apps import AppRegistry
|
|
|
|
DB = PostgresEngine(
|
|
config={
|
|
"database": "piccolo_project",
|
|
"user": "postgres",
|
|
"password": "",
|
|
"host": "localhost",
|
|
"port": 5432,
|
|
}
|
|
)
|
|
|
|
APP_REGISTRY = AppRegistry(
|
|
apps=["home.piccolo_app", "piccolo_admin.piccolo_app"]
|
|
)
|