added basic functionality to import designers into esales cluster
This commit is contained in:
@@ -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`
|
||||
|
||||
Reference in New Issue
Block a user