Commit 0e0c240e96d6ff7d91bb9b2b95bad218aa63fced
Updating README.md
- Adding documentation for installing drivers for database.
| | | | 128 | | 128 | |
---|
129 | > `` $ cp swtstore/sample_config.py swtstore/config.py`` | 129 | > `` $ cp swtstore/sample_config.py swtstore/config.py`` |
---|
130 | | 130 | |
---|
| | 131 | * Install the required driver for using database mentioned in the |
---|
| | 132 | SQLALCHEMY_DATABASE_URI. Install pyscopg2 if you have chosen postgresql as |
---|
| | 133 | the database to use. |
---|
| | 134 | |
---|
| | 135 | > `` $ pip install psycopg2 `` |
---|
| | 136 | |
---|
| | 137 | Install oursql if you have chosen mysql as the database to use. |
---|
| | 138 | |
---|
| | 139 | > `` $ pip install oursql`` |
---|
| | 140 | |
---|
| | 141 | You would also have to install dependecies, for using mysql: |
---|
| | 142 | - python-dev |
---|
| | 143 | - libmysqlclient-dev |
---|
| | 144 | Install these dependencies from the package manager of your distribution. |
---|
| | 145 | |
---|
131 | * Edit the config.py file, and change the values accordingly. | 146 | * Edit the config.py file, and change the values accordingly. |
---|
132 | | 147 | |
---|
133 | * Now, you have to setup the database for the swtstore application. But | 148 | * Now, you have to setup the database for the swtstore application. But |
---|