Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Michael R Lundquist
whats-open
Commits
e64903ee
Commit
e64903ee
authored
Jul 25, 2019
by
mike
Browse files
Just need to add the search library in, then I'll delete the filter backend stuff in views.py
parent
d2a34b57
Pipeline
#4497
failed with stage
in 43 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
whats-open/settings/settings.py
View file @
e64903ee
...
...
@@ -268,6 +268,11 @@ REST_FRAMEWORK = {
# http://www.django-rest-framework.org/api-guide/throttling/#throttling
"DEFAULT_THROTTLE_CLASSES"
:
(
"rest_framework.throttling.AnonRateThrottle"
,),
"DEFAULT_THROTTLE_RATES"
:
{
"anon"
:
"1000/day"
},
'DEFAULT_FILTER_BACKENDS'
:
[
#'url_filter.integrations.drf.URLFilterBackend', #url_filters
"django_filters.rest_framework.DjangoFilterBackend"
,
#rest_framework.filters
"rest_framework.filters.OrderingFilter"
],
}
"""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment