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-06-06 23:16:57 +02:00
|
|
|
path("metrics/", views.metrics, name="metrics"),
|
2024-03-18 08:26:21 +01:00
|
|
|
# ex: /animal/5/
|
2024-05-30 09:54:54 +02:00
|
|
|
path("tier/<int:animal_id>/", views.animal_detail, name="animal-detail"),
|
2024-05-10 13:54:16 +02:00
|
|
|
# ex: /animal/5/edit
|
2024-05-30 16:57:47 +02:00
|
|
|
path("tier/<int:animal_id>/edit", views.animal_edit, name="animal-edit"),
|
2024-05-31 10:56:43 +02:00
|
|
|
# ex: /animal/5/add-photo
|
|
|
|
path("tier/<int:animal_id>/add-photo", views.add_photo_to_animal, name="animal-add-photo"),
|
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
|
2024-05-30 09:54:54 +02:00
|
|
|
path("vermittlung/<int:adoption_notice_id>/edit", views.adoption_notice_edit, name="adoption-notice-edit"),
|
2024-05-31 10:56:43 +02:00
|
|
|
# ex: /vermittlung/5/add-photo
|
|
|
|
path("vermittlung/<int:adoption_notice_id>/add-photo", views.add_photo_to_adoption_notice, name="adoption-notice-add-photo"),
|
2024-05-30 15:49:32 +02:00
|
|
|
# ex: /adoption_notice/2/add-animal
|
|
|
|
path("vermittlung/<int:adoption_notice_id>/add-animal", views.adoption_notice_add_animal, name="adoption-notice-add-animal"),
|
2024-11-14 19:16:47 +01:00
|
|
|
path("organisation/<int:rescue_organization_id>/", views.detail_view_rescue_organization,
|
|
|
|
name="rescue-organization-detail"),
|
2024-03-18 16:36:45 +01:00
|
|
|
|
|
|
|
# ex: /search/
|
|
|
|
path("suchen/", views.search, name="search"),
|
2024-08-24 08:36:10 +02:00
|
|
|
# ex: /map/
|
|
|
|
path("map/", views.map, name="map"),
|
2024-03-18 16:36:45 +01:00
|
|
|
# ex: /vermitteln/
|
2024-05-31 10:58:57 +02:00
|
|
|
path("vermitteln/", views.add_adoption_notice, 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
|
|
|
|
2024-09-30 15:22:19 +02:00
|
|
|
################
|
|
|
|
## Moderation ##
|
|
|
|
################
|
2024-05-30 15:46:51 +02:00
|
|
|
path("vermittlung/<int:adoption_notice_id>/report", views.report_adoption, name="report-adoption-notice"),
|
|
|
|
|
|
|
|
path("kommentar/<int:comment_id>/report", views.report_comment, name="report-comment"),
|
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-09-30 15:22:19 +02:00
|
|
|
|
|
|
|
path("updatequeue/", views.updatequeue, name="updatequeue"),
|
2024-03-23 22:20:31 +01:00
|
|
|
|
|
|
|
###########
|
|
|
|
## USERS ##
|
|
|
|
###########
|
2024-04-07 09:06:18 +02:00
|
|
|
# ex: user/1
|
2024-06-08 09:31:23 +02:00
|
|
|
path("user/<int:user_id>/", views.user_detail, name="user-detail"),
|
2024-11-18 22:40:59 +01:00
|
|
|
path("user/me/", views.my_profile, name="user-me"),
|
2024-11-18 23:01:27 +01:00
|
|
|
path('user/me/export/', views.export_own_profile, name='user-me-export'),
|
2024-03-23 22:20:31 +01:00
|
|
|
|
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-09-28 23:45:59 +02:00
|
|
|
path('change-language', views.change_language, name="change-language"),
|
|
|
|
|
|
|
|
###########
|
|
|
|
## ADMIN ##
|
|
|
|
###########
|
2024-10-03 08:45:42 +02:00
|
|
|
path('instance-health-check', views.instance_health_check, name="instance-health-check"),
|
|
|
|
|
|
|
|
#############
|
|
|
|
## Metrics ##
|
|
|
|
#############
|
|
|
|
# ex: /metrics
|
|
|
|
path('metrics/', views.metrics, name="metrics"),
|
|
|
|
|
|
|
|
#########
|
|
|
|
## API ##
|
|
|
|
#########
|
|
|
|
path('api/', include('fellchensammlung.api.urls')),
|
|
|
|
|
2024-10-05 11:22:10 +02:00
|
|
|
###################
|
|
|
|
## External Site ##
|
|
|
|
###################
|
|
|
|
path('external-site/', views.external_site_warning, name="external-site"),
|
2024-04-12 23:37:03 +02:00
|
|
|
|
2024-03-22 12:45:50 +01:00
|
|
|
]
|