from django.urls import path, include from django_registration.backends.activation.views import RegistrationView from .forms import CustomRegistrationForm from .feeds import LatestAdoptionNoticesFeed from . import views urlpatterns = [ path("", views.index, name="index"), path("rss/", LatestAdoptionNoticesFeed(), name="rss"), # ex: /animal/5/ path("tier//", views.animal_detail, name="animal-detail"), # ex: /animal/5/edit path("tier//edit", views.animal_edit, name="animal-edit"), # ex: /animal/5/add-photo path("tier//add-photo", views.add_photo_to_animal, name="animal-add-photo"), # ex: /adoption_notice/7/ path("vermittlung//", views.adoption_notice_detail, name="adoption-notice-detail"), # ex: /adoption_notice/7/edit path("vermittlung//edit", views.adoption_notice_edit, name="adoption-notice-edit"), # ex: /vermittlung/5/add-photo path("vermittlung//add-photo", views.add_photo_to_adoption_notice, name="adoption-notice-add-photo"), # ex: /adoption_notice/2/add-animal path("vermittlung//add-animal", views.adoption_notice_add_animal, name="adoption-notice-add-animal"), # ex: /search/ path("suchen/", views.search, name="search"), # ex: /vermitteln/ path("vermitteln/", views.add_adoption_notice, name="add-adoption"), path("ueber-uns/", views.about, name="about"), ############# ## Reports ## ############# path("vermittlung//report", views.report_adoption, name="report-adoption-notice"), path("kommentar//report", views.report_comment, name="report-comment"), path("meldung//", views.report_detail, name="report-detail"), path("meldung//sucess", views.report_detail_success, name="report-detail-success"), path("modqueue/", views.modqueue, name="modqueue"), ########### ## USERS ## ########### # ex: user/1 path("user//", views.member_detail, name="user-detail"), path('accounts/register/', RegistrationView.as_view( form_class=CustomRegistrationForm ), name='django_registration_register', ), path('accounts/', include('django_registration.backends.activation.urls')), path('accounts/', include('django.contrib.auth.urls')), path('change-language', views.change_language, name="change-language") ]