2024-04-07 10:00:17 +02:00
|
|
|
from django.urls import path, include
|
2024-04-07 11:41:37 +02:00
|
|
|
from django_registration.backends.activation.views import RegistrationView
|
|
|
|
|
|
|
|
from .forms import CustomRegistrationForm
|
2024-04-14 16:48:07 +02:00
|
|
|
from .feeds import LatestAdoptionNoticesFeed
|
2024-03-17 11:26:32 +01:00
|
|
|
|
|
|
|
from . import views
|
|
|
|
|
|
|
|
urlpatterns = [
|
|
|
|
path("", views.index, name="index"),
|
2024-04-14 16:48:07 +02:00
|
|
|
path("rss/", LatestAdoptionNoticesFeed(), name="rss"),
|
2024-03-18 08:26:21 +01:00
|
|
|
# ex: /animal/5/
|
|
|
|
path("<int:animal_id>/", views.animal_detail, name="animal-detail"),
|
2024-05-10 13:54:16 +02:00
|
|
|
# ex: /animal/5/edit
|
|
|
|
path("<int:animal_id>/edit", views.change_animal, name="animal-edit"),
|
2024-03-18 08:26:21 +01:00
|
|
|
# ex: /adoption_notice/7/
|
2024-03-19 18:18:55 +01:00
|
|
|
path("vermittlung/<int:adoption_notice_id>/", views.adoption_notice_detail, name="adoption-notice-detail"),
|
2024-05-10 13:54:16 +02:00
|
|
|
# ex: /adoption_notice/7/edit
|
|
|
|
path("vermittlung/<int:adoption_notice_id>/edit", views.change_animal, name="adoption-notice-edit"),
|
2024-03-18 16:36:45 +01:00
|
|
|
|
|
|
|
# ex: /search/
|
|
|
|
path("suchen/", views.search, name="search"),
|
|
|
|
# ex: /vermitteln/
|
|
|
|
path("vermitteln/", views.add_adoption, name="add-adoption"),
|
2024-03-19 18:18:55 +01:00
|
|
|
|
2024-03-18 16:41:22 +01:00
|
|
|
path("ueber-uns/", views.about, name="about"),
|
2024-03-22 12:45:50 +01:00
|
|
|
|
|
|
|
#############
|
|
|
|
## Reports ##
|
|
|
|
#############
|
2024-03-22 12:53:39 +01:00
|
|
|
path("melden/<int:adoption_notice_id>/", views.report_adoption, name="report-adoption-notice"),
|
2024-03-22 12:45:50 +01:00
|
|
|
path("meldung/<uuid:report_id>/", views.report_detail, name="report-detail"),
|
|
|
|
path("meldung/<uuid:report_id>/sucess", views.report_detail_success, name="report-detail-success"),
|
2024-04-07 09:03:20 +02:00
|
|
|
path("modqueue/", views.modqueue, name="modqueue"),
|
2024-03-23 22:20:31 +01:00
|
|
|
|
|
|
|
###########
|
|
|
|
## USERS ##
|
|
|
|
###########
|
2024-04-07 09:06:18 +02:00
|
|
|
# ex: user/1
|
2024-03-23 22:20:31 +01:00
|
|
|
path("user/<int:user_id>/", views.member_detail, name="user-detail"),
|
|
|
|
|
2024-04-07 11:41:37 +02:00
|
|
|
path('accounts/register/',
|
|
|
|
RegistrationView.as_view(
|
|
|
|
form_class=CustomRegistrationForm
|
|
|
|
),
|
|
|
|
name='django_registration_register',
|
|
|
|
),
|
2024-04-07 10:00:17 +02:00
|
|
|
path('accounts/', include('django_registration.backends.activation.urls')),
|
|
|
|
path('accounts/', include('django.contrib.auth.urls')),
|
|
|
|
|
2024-04-12 23:37:03 +02:00
|
|
|
path('change-language', views.change_language, name="change-language")
|
|
|
|
|
2024-03-22 12:45:50 +01:00
|
|
|
]
|