Exemplo n.º 1
0
from django.conf.urls import url

from apps.operations.views import AddFavView, AddCommentView

urlpatterns = [
    url(r'^fav/$', AddFavView.as_view(), name='fav'),
    url(r'^comment/$', AddCommentView.as_view(), name='comment'),
]
Exemplo n.º 2
0
from django.conf.urls import url

from apps.operations.views import AddFavView, CommentView
from django.urls import path

urlpatterns = [
    url(r'^fav/$', AddFavView.as_view(), name="fav"),
    url(r'^comment/$', CommentView.as_view(), name="comment"),
]
Exemplo n.º 3
0
from django.conf.urls import url

from apps.operations.views import AddFavView, CommentView

urlpatterns = [
    # 添加收藏,删除收藏接口
    url(
        r'^fav/$',
        AddFavView.as_view(),
        name='fav',
    ),
    url(
        r'^comment/$',
        CommentView.as_view(),
        name='comment',
    ),
]
Exemplo n.º 4
0
from django.urls import path,re_path

from apps.operations.views import AddFavView,CommentView

urlpatterns = [
    re_path("^fav/$",AddFavView.as_view(),name="fav"),
    re_path("^comment/$",CommentView.as_view(),name="comment"),
]
Exemplo n.º 5
0
from django.urls import path

from apps.operations.views import AddFavView, CommentView

app_name = 'op'
urlpatterns = [
    path('fav/', AddFavView.as_view(), name='fav'),
    path('comment/', CommentView.as_view(), name='comment'),
]