added basic functionality to import designers into esales cluster

This commit is contained in:
Martin
2016-05-11 16:17:54 +02:00
parent 9ced739ef6
commit af864c3438
14 changed files with 186 additions and 5 deletions
+8 -2
View File
@@ -29,7 +29,9 @@ List of available configuration options:
| ---- | ----------- |
| `SQLALCHEMY_DATABASE_URI` | Database connection string. e.g: `postgresql://user:password@localhost/photowall` |
| `DEBUG` | Enable/disable debug mode |
| `API_KEYS` | A list of api keys that are used to authenticate to the API
| `API_KEYS` | A list of api keys that are used to authenticate to the API |
| `ESALES_URL` | URL to the eSales server. If its a cloud cluster it has the format `username:password` |
| `ESALES_IMPORT_DIR` | XML-files that should be imported to eSales are temporarily stored in this directory. e.g: `/tmp/esales`
## Authentication
Authentication to the API is performed via HTTP Basic Auth. The user should provide her API key as the basic auth username parameter. An example request in cURL looks like this (adding a colon after the username prevents cURL from asking for a password):
@@ -42,4 +44,8 @@ API keys should be added to the `API_KEYS` configuration option
Starting the application:
`$ python manage.py runserver`
`$ python manage.py runserver`
Running the eSales import
`$ python manage.py run_esales_import`