Quantcast
Channel: dev sniper » Pyramid Framework
Viewing all articles
Browse latest Browse all 9

Pyramid framework tips : MySQL Database settings

$
0
0

Installing MySQL DB-API driver on Kubuntu 11.10 in Console:

  sudo apt-get install libmysqlclient-dev
  sudo apt-get install python-dev

In virtual env of your Pyramid installation:

  $ easy_install mysql-python

For MS Windows installation details see please online book: The Definitive Guide to Pylons – James Gardner.

For SQLAlchemy in Pyramid framework in development.ini and production.ini:

  # mysql
  sqlalchemy.url = mysql://DB_USER:PASSWORD@localhost:3306/DATABASE_NAME
  sqlalchemy.pool_recycle = 3600

Viewing all articles
Browse latest Browse all 9

Trending Articles