An open API service indexing awesome lists of open source software.

https://github.com/patricksanders/mdb-to-postgres

Flask app to import an Access database into Postgres
https://github.com/patricksanders/mdb-to-postgres

Last synced: 5 months ago
JSON representation

Flask app to import an Access database into Postgres

Awesome Lists containing this project

README

          

## Install Instructions

* Ensure PostgreSQL is installed and configured
* Copy mdb-to-postgres folder to destination system
* Install dependencies

```
pip install -r requirements.txt
```

* Fix permissions

```
chown -R www-data:www-data mdb-to-postgres/
chmod -R 750 mdb-to-postgres/
```

* Add wsgi directives to apache config

```
WSGIDaemonProcess mdb-to-postgres user=www-data group=www-data threads=5
WSGIScriptAlias /importdb /apps/mdb-to-postgres/mdb_to_postgres.wsgi
Alias /importdb/static /apps/mdb-to-postgres/static


WSGIProcessGroup mdb-to-postgres
WSGIApplicationGroup %{GLOBAL}
Order deny,allow
Allow from all

```

* Make any necessary changes to mdb-to-postgres/default-config.py
* NOTE: Make sure www-data has permissions to write to the working directory
* Restart Apache