Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F69220787
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
Sun, Jun 30, 19:33
Size
923 B
Mime Type
text/x-python
Expires
Tue, Jul 2, 19:33 (2 d)
Engine
blob
Format
Raw Data
Handle
18684696
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
,
OrganizationConditionViewSet
,
ConditionTermViewSet
,
TermViewSet
,
JournalConditionViewSet
,
ConditionSetViewSet
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'conditionterm'
,
ConditionTermViewSet
)
router
.
register
(
r'conditionset'
,
ConditionSetViewSet
)
router
.
register
(
r'term'
,
TermViewSet
)
urlpatterns
=
[
path
(
''
,
include
(
router
.
urls
)),
# path('institutionterms/<int:pk>', views.InstitutionTerms),
]
Event Timeline
Log In to Comment