Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F92563118
urls.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Thu, Nov 21, 12:26
Size
446 B
Mime Type
text/x-python
Expires
Sat, Nov 23, 12:26 (19 h, 39 m)
Engine
blob
Format
Raw Data
Handle
22463097
Attached To
rOACCT Open Access Compliance Check Tool (OACCT)
urls.py
View Options
from
django.urls
import
path
,
re_path
,
include
from
django.conf.urls.static
import
static
from
django.conf
import
settings
from
.views
import
JournalViewSet
,
InstitViewSet
,
FunderViewSet
from
rest_framework
import
routers
router
=
routers
.
DefaultRouter
()
router
.
register
(
r'journal'
,
JournalViewSet
)
router
.
register
(
r'institution'
,
InstitViewSet
)
router
.
register
(
r'funder'
,
FunderViewSet
)
urlpatterns
=
[
path
(
''
,
include
(
router
.
urls
)),
]
Event Timeline
Log In to Comment