The Django settings for the Django Storelocator.
Sometimes geographical data changes and needs to be updated, because the data isn’t stale or your data source has inaccuracies.
Django Storelocator comes with management commands to update the Location or Shop models latitude and longitude properties.
| Type : | string |
|---|---|
| Default : | None |
The API key of your Yahoo YQL app.
| Type : | string |
|---|---|
| Default : | None |
The API consumer secret of your Yahoo YQL app.
Django Storelocator general settings all have default values and don’t necessarily need to be changed.
| Type : | float (km) |
|---|---|
| Default : | 10.0 |
| Min : | 0 |
Sets the maximum radius.
| Type : | int |
|---|---|
| Default : | 15 |
| Min : | 0 |
Sets the max value on shop results that can be listed in the response.
You can optionally add the 'storelocator' logger to your loggers:
# example
...
'storelocator': {
'handlers': ['file','console'],
'level': 'DEBUG',
'propagate': False,
},
If you want to determine the language by requesters client, add the LocaleMiddleware middleware to MIDDLEWARE_CLASSES in your settings.
MIDDLEWARE_CLASSES = (
...
'django.middleware.locale.LocaleMiddleware',
)