• Skip to primary navigation
  • Skip to main content
pythonGrid

pythonGrid

Datagrid for Python Web Frameworks

  • Home
  • Docs
  • Demo
  • Download
    • GitHub
    • Source (.zip)
  • Contact

configuration

Database Connection Settings

pythongridstg · April 27, 2020 ·

Find file config.py, and set the database connection properties according to your environment. The demo uses MySQL database.

You can also use a socket to connect to your database without specifying a database hostname.

PYTHONGRID_DB_HOSTNAME = 'mysqldatabase.example.com'
PYTHONGRID_DB_NAME = 'sampledb'
PYTHONGRID_DB_USERNAME = 'root'
PYTHONGRID_DB_PASSWORD = 'root'
PYTHONGRID_DB_TYPE = 'mysql+pymysql'

For Postgres set database type to postgres+psycopg2

PYTHONGRID_DB_TYPE = 'postgres+psycopg2'

 

Stay in touch!

Notify me when new features are released.

pythonGrid

pythonGrid is a free and open-source datagrid library made for Python web framework

Copyright © 2022 · pythonGrid | privacy policy

  • Home
  • Docs
  • Demo
  • Download
  • Contact