Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F69388099
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
Mon, Jul 1, 14:03
Size
734 B
Mime Type
text/x-python
Expires
Wed, Jul 3, 14:03 (2 d)
Engine
blob
Format
Raw Data
Handle
18703442
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
,
OrganizationConditionViewSet
,
JournalConditionViewSet
,
ConditionSetViewSet
,
FunderViewSet
from
.
import
views
from
rest_framework
import
routers
router
=
routers
.
DefaultRouter
()
router
.
register
(
r'journal'
,
JournalViewSet
)
router
.
register
(
r'institution'
,
InstitViewSet
)
router
.
register
(
r'funder'
,
FunderViewSet
)
router
.
register
(
r'organizationcondition'
,
OrganizationConditionViewSet
)
router
.
register
(
r'journalcondition'
,
JournalConditionViewSet
)
router
.
register
(
r'conditionset'
,
ConditionSetViewSet
)
urlpatterns
=
[
path
(
''
,
include
(
router
.
urls
)),
]
Event Timeline
Log In to Comment