Is settings.DEBUG set to True?

From: [email protected] [mailto:[email protected]] On 
Behalf Of ???
Sent: Tuesday, December 5, 2017 9:00 PM
To: Django users
Subject: django 2.0 url to path

i try to use path instead of url
but there are some problem

following is my code


oauth2_endpoint_views = ([
   path('authorize/', oauth2_views.AuthorizationView.as_view(), 
name='authorize'),
   path('token/', oauth2_views.TokenView.as_view(), name='token'),
   path('revoke-token/', oauth2_views.RevokeTokenView.as_view, 
name='revoke-token'),
], 'oauth2')



if settings.DEBUG:



   oauth2_endpoint_views += ([
       path('application/', oauth2_views.ApplicationList.as_view(), 
name='list'),
       path('application/register', 
oauth2_views.ApplicationRegistration.as_view(), name='register'),
       path('application/<int:pk>/', oauth2_views.ApplicationDetail.as_view(), 
name='detail'),
       path('application/<int:pk>/delete/', 
oauth2_views.ApplicationDetail.as_view(), name='delete'),
       path('application/<int:pk>/update/', 
oauth2_views.ApplicationUpdate.as_view(), name='update'),
       path('authorized-tokens/', 
oauth2_views.AuthorizedTokensListView.as_view(), name='authorized-token-list'),
       path('authorized-tokens/<int:pk>/delete/', 
oauth2_views.AuthorizedTokenDeleteView.as_view(), 
name='authorized-token-delete'),
   ], 'oauth2')





but i can't found page application, application/register/ ....

how can i solve the problem...

plz help me


--
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
[email protected]<mailto:[email protected]>.
To post to this group, send email to 
[email protected]<mailto:[email protected]>.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/0dcd4fe4-baa5-4850-9e2b-5f87fc2b5d50%40googlegroups.com<https://groups.google.com/d/msgid/django-users/0dcd4fe4-baa5-4850-9e2b-5f87fc2b5d50%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/2bfa7f0d9dae4d699a096b17a5b793c2%40ISS1.ISS.LOCAL.
For more options, visit https://groups.google.com/d/optout.

Reply via email to