39 lines
2.1 KiB
Python
39 lines
2.1 KiB
Python
|
from django.urls import path, include, reverse
|
||
|
from django.conf.urls import url
|
||
|
from django.contrib.auth.decorators import login_required
|
||
|
from django.contrib import admin
|
||
|
|
||
|
from two_factor.urls import urlpatterns as tf_urls
|
||
|
from two_factor.gateways.twilio.urls import urlpatterns as tf_twilio_urls
|
||
|
|
||
|
from . import views
|
||
|
|
||
|
urlpatterns = [
|
||
|
path('', views.index, name="index"),
|
||
|
path('clientarea/', views.clientarea, name="clientarea"),
|
||
|
path('clientarea/profile/', views.userprofile, name="userprofile"),
|
||
|
path('clientarea/profile/password/', views.changepassword, name="changepassword"),
|
||
|
path('clientarea/items/', views.items, name="items"),
|
||
|
path('clientarea/items/add/', views.ItemCreateView.as_view(), name="additem"),
|
||
|
path('clientarea/items/<slug:uuid>/', views.ItemDetailView.as_view(), name="edititem"),
|
||
|
path('clientarea/items/<slug:uuid>/upload/', views.ImageCreateView.as_view(), name="imageupload"),
|
||
|
path('clientarea/items/<slug:uuid>/report/', views.ItemStolenView.as_view(), name="itemstolen"),
|
||
|
path('clientarea/items/<slug:uuid>/found/', views.ItemFoundView.as_view(), name="founditem"),
|
||
|
path('clientarea/categories/', views.CategoryListView.as_view(), name="categories"),
|
||
|
path('clientarea/categories/add/', views.CategoryCreateView.as_view(), name="addcategory"),
|
||
|
path('clientarea/categories/<slug:slug>/delete', views.CategoryDeleteView.as_view(), name="deletecategory"),
|
||
|
path('clientarea/users/', views.UserListView.as_view(), name="users"),
|
||
|
path('protect/', views.protect, name="protect"),
|
||
|
path('check/', views.check, name="check"),
|
||
|
path('check/<slug:slug>/', views.StolenItemListView.as_view(), name="checkcategory"),
|
||
|
path('success/', views.success, name="reportsuccess"),
|
||
|
path('item/<slug:uuid>/', views.StolenItemView.as_view(), name="checkitem"),
|
||
|
path('item/<slug:uuid>/report/', views.ReportCreateView.as_view(), name="reportitem"),
|
||
|
path('privacy/', views.privacy, name="privacy"),
|
||
|
path('faq/', views.faq, name="faq"),
|
||
|
path('legal/', views.legal, name="legal"),
|
||
|
url(r'', include(tf_urls)),
|
||
|
url(r'', include(tf_twilio_urls)),
|
||
|
path('gdpr/', admin.site.urls),
|
||
|
]
|