2024-06-19 05:41:13 -05:00
|
|
|
from django.urls import path
|
|
|
|
|
|
|
|
from . import views
|
|
|
|
|
|
|
|
urlpatterns = [
|
|
|
|
path("", views.index, name="index"),
|
2024-06-21 03:02:03 -05:00
|
|
|
path("all/", views.all, name="all"),
|
2024-06-21 22:54:34 -05:00
|
|
|
path("stats/", views.stats, name="stats"),
|
2024-06-19 05:41:13 -05:00
|
|
|
path("legislation/<int:legislation_id>/", views.view_legislation, name="viewleg"),
|
2024-06-21 22:42:19 -05:00
|
|
|
path("conference/<int:conference_id>/", views.view_conference, name="viewconf"),
|
2024-06-30 22:01:55 -05:00
|
|
|
path("topics/<int:model_id>/", views.get_all_classified_by_id, name="LegislationClassification.detail"),
|
|
|
|
path("topics/", views.get_all_classifications, name="LegislationClassification"),
|
2024-07-27 23:49:06 -05:00
|
|
|
path("search/", views.handle_search, name="search_legislation"),
|
2024-06-30 21:56:33 -05:00
|
|
|
|
|
|
|
# these are named weirdly -- see models.py School and Country definitions
|
|
|
|
path("schools/<int:model_id>/", views.get_all_by_school, name="School.detail"),
|
|
|
|
path("countries/<int:model_id>/", views.get_all_by_country, name="Country.detail"),
|
2024-07-24 00:13:30 -05:00
|
|
|
path("sponsors/<int:model_id>/", views.get_all_by_sponsor, name="Sponsor.detail"),
|
2024-07-24 13:13:07 -05:00
|
|
|
path("categories/<int:model_id>/", views.get_all_by_category, name="Category.detail"),
|
2024-06-30 21:56:33 -05:00
|
|
|
path("schools/", views.get_all_schools, name="School"),
|
|
|
|
path("countries/", views.get_all_countries, name="Country"),
|
2024-07-24 00:13:30 -05:00
|
|
|
path("groups/", views.return_groups, name="Groups"),
|
2024-07-24 13:13:07 -05:00
|
|
|
path("sponsors/", views.get_all_sponsors, name="Sponsor"),
|
|
|
|
path("categories/", views.get_all_categories, name="Category"),
|
2024-06-19 05:41:13 -05:00
|
|
|
]
|