Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9341354
__init__.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
988 B
Subscribers
None
__init__.py
View Options
# Copyright (C) 2017 The Software Heritage developers
# See the AUTHORS file at the top-level directory of this distribution
# License: GNU General Public License version 3, or any later version
# See top-level LICENSE file for more information
import
os
import
django
from
swh.web.config
import
get_config
swh_web_config
=
get_config
()
swh_web_config
.
update
({
'debug'
:
True
,
'secret_key'
:
'test'
,
'throttling'
:
{
'cache_uri'
:
None
,
'scopes'
:
{
'swh_api'
:
{
'limiter_rate'
:
'60/min'
,
'exempted_networks'
:
[
'127.0.0.0/8'
]
},
'scope1'
:
{
'limiter_rate'
:
'3/min'
},
'scope2'
:
{
'limiter_rate'
:
'5/min'
,
'exempted_networks'
:
[
'127.0.0.0/8'
]
}
}
}
})
os
.
environ
.
setdefault
(
"DJANGO_SETTINGS_MODULE"
,
"swh.web.settings.development"
)
django
.
setup
()
scope1_limiter_rate
=
3
scope2_limiter_rate
=
5
File Metadata
Details
Attached
Mime Type
text/x-python
Expires
Fri, Jul 4, 11:58 AM (3 w, 2 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3291785
Attached To
R65 Staging repository
Event Timeline
Log In to Comment