<reponame>advancingship/artspresso<gh_stars>0
from django.conf.urls import include, url
from django.views.generic import DetailView, ListView
from django.urls import path
from . import views

urlpatterns = [
    # ex: /node_frames/
    path('', views.index, name='index'),
    # ex: /node_frames/5/
    
    path('<int:node_frame_id>/', views.detail, name='node-frame-detail'),
    path('x/<int:node_frame_id>/', views.detail, name='detail'),    

    path('add/', views.NodeFrameCreate.as_view(), name='node-frame-add'),
    # path('<int:pk>/update', views.NodeFrameUpdate.as_view(), name='node-frame-update'),

    #ex: /frames/1/delete/
    path('<int:pk>/delete/', views.delete, name='node-frame-delete'),
    #path('new/', views.NodeFrameCreate.as_view(), name='node-frame-add'),

    #works
    path('new/', views.new, name='node-frame-new'),

    #works
    path('<int:pk>/update/', views.update, name='node-frame-update'),

    #object of type NodeFrame is not JSON serializable
    path('make/', views.make, name='node-frame-make'),

    path('new_arc/', views.new_arc, name='arc-new'),
    path('<int:pk>/update_arc/', views.update_arc, name='arc-update'),
    path('<int:pk>/delete_arc/', views.delete_arc, name='arc-delete'),
    path('<int:pk>/associates/', views.get_associated_graph, name='node-associates')
]

from django.conf.urls import include, url
from django.views.generic import DetailView, ListView
from django.urls import path
from . import views

urlpatterns = [
    # ex: /node_frames/
    path('', views.index, name='index'),
    # ex: /node_frames/5/
    
    path('<int:node_frame_id>/', views.detail, name='node-frame-detail'),
    path('x/<int:node_frame_id>/', views.detail, name='detail'),    

    path('add/', views.NodeFrameCreate.as_view(), name='node-frame-add'),
    # path('<int:pk>/update', views.NodeFrameUpdate.as_view(), name='node-frame-update'),

    #ex: /frames/1/delete/
    path('<int:pk>/delete/', views.delete, name='node-frame-delete'),
    #path('new/', views.NodeFrameCreate.as_view(), name='node-frame-add'),

    #works
    path('new/', views.new, name='node-frame-new'),

    #works
    path('<int:pk>/update/', views.update, name='node-frame-update'),

    #object of type NodeFrame is not JSON serializable
    path('make/', views.make, name='node-frame-make'),

    path('new_arc/', views.new_arc, name='arc-new'),
    path('<int:pk>/update_arc/', views.update_arc, name='arc-update'),
    path('<int:pk>/delete_arc/', views.delete_arc, name='arc-delete'),
    path('<int:pk>/associates/', views.get_associated_graph, name='node-associates')
]
# ex: /node_frames/ # ex: /node_frames/5/ # path('<int:pk>/update', views.NodeFrameUpdate.as_view(), name='node-frame-update'), #ex: /frames/1/delete/ #path('new/', views.NodeFrameCreate.as_view(), name='node-frame-add'), #works #works #object of type NodeFrame is not JSON serializable