2018-10-17 08:51:51 +00:00
|
|
|
from django.urls import path
|
|
|
|
|
|
|
|
from . import views
|
2018-10-17 09:39:31 +00:00
|
|
|
from . import autocomplete as autocomplete_views
|
2018-10-17 08:51:51 +00:00
|
|
|
|
|
|
|
app_name = 'jobs'
|
|
|
|
urlpatterns = [
|
|
|
|
path('', views.Index.as_view(), name='index'),
|
2018-10-17 09:39:31 +00:00
|
|
|
path('jobs/create/', views.JobCreate.as_view(), name='create'),
|
|
|
|
path('jobs/', views.JobList.as_view(), name='list'),
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
|
|
# autocomplete endpoints
|
|
|
|
urlpatterns += [
|
|
|
|
path(
|
|
|
|
'tag-autocomplete/',
|
|
|
|
autocomplete_views.TagAutocomplete.as_view(create_field='name'),
|
|
|
|
name='tag-autocomplete',
|
|
|
|
),
|
2018-10-17 08:51:51 +00:00
|
|
|
]
|