Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9341595
urls.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
urls.py
View Options
# Copyright (C) 2017-2018 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
from
django.conf.urls
import
url
from
django.shortcuts
import
render
import
swh.web.browse.views.directory
# noqa
import
swh.web.browse.views.content
# noqa
import
swh.web.browse.views.origin
# noqa
import
swh.web.browse.views.person
# noqa
import
swh.web.browse.views.release
# noqa
import
swh.web.browse.views.revision
# noqa
from
swh.web.browse.browseurls
import
BrowseUrls
def
default_browse_view
(
request
):
"""Default django view used as an entry point
for the swh browse ui web application.
The url that point to it is /browse/.
Args:
request: input django http request
"""
return
render
(
request
,
'person.html'
,
{
'heading'
:
'Browse the Software Heritage archive'
,
'empty_browse'
:
True
})
urlpatterns
=
[
url
(
r'^$'
,
default_browse_view
,
name
=
'browse-homepage'
)
]
urlpatterns
+=
BrowseUrls
.
get_url_patterns
()
File Metadata
Details
Attached
Mime Type
text/x-python
Expires
Fri, Jul 4, 12:10 PM (2 w, 4 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3348793
Attached To
rDWAPPS Web applications
Event Timeline
Log In to Comment