This commit is contained in:
Bernhard Posselt 2016-06-26 14:10:30 +02:00
Родитель 3f36f59067
Коммит fd785b1afc
1 изменённых файлов: 11 добавлений и 3 удалений

Просмотреть файл

@ -116,9 +116,17 @@ To get your instance running in production you need to create your local setting
# https://docs.djangoproject.com/en/1.9/ref/settings/#std:setting-EMAIL_HOST
EMAIL_HOST = 'localhost'
# how many times a user is allowed to call the app upload route per day
REST_FRAMEWORK['DEFAULT_THROTTLE_RATES'] = {
'app_upload_or_delete': '20/day'
REST_FRAMEWORK = {
'DEFAULT_RENDERER_CLASSES': (
'djangorestframework_camel_case.render.CamelCaseJSONRenderer',
),
'DEFAULT_PARSER_CLASSES': (
'djangorestframework_camel_case.parser.CamelCaseJSONParser',
),
'DEFAULT_THROTTLE_RATES': {
# how many times a user is allowed to call the app upload route per day
'app_upload': '50/day'
}
}
# Only set this parameter if you want to use a different tmp directory for app downloads