from django.conf.urls import url from django.urls import path from django.views.generic import RedirectView from bookmarks import views app_name = 'bookmarks' urlpatterns = [ # Redirect root to bookmarks index url(r'^$', RedirectView.as_view(pattern_name='bookmarks:index', permanent=False)), # Bookmarks path('bookmarks', views.index, name='index'), path('bookmarks/new', views.new, name='new'), path('bookmarks//edit', views.edit, name='edit'), path('bookmarks//remove', views.remove, name='remove'), # API path('api/website_metadata', views.api.website_metadata, name='api.website_metadata'), ]