2017-12-26 17:46:27 +01:00
|
|
|
"""get_together URL Configuration
|
|
|
|
|
|
|
|
The `urlpatterns` list routes URLs to views. For more information please see:
|
|
|
|
https://docs.djangoproject.com/en/2.0/topics/http/urls/
|
|
|
|
Examples:
|
|
|
|
Function views
|
|
|
|
1. Add an import: from my_app import views
|
|
|
|
2. Add a URL to urlpatterns: path('', views.home, name='home')
|
|
|
|
Class-based views
|
|
|
|
1. Add an import: from other_app.views import Home
|
|
|
|
2. Add a URL to urlpatterns: path('', Home.as_view(), name='home')
|
|
|
|
Including another URLconf
|
|
|
|
1. Import the include() function: from django.urls import include, path
|
|
|
|
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
|
|
|
|
"""
|
|
|
|
from django.contrib import admin
|
2017-12-27 21:00:49 +01:00
|
|
|
from django.urls import path, include
|
2017-12-30 04:27:05 +01:00
|
|
|
from events import views as event_views
|
|
|
|
from . import views
|
2017-12-26 17:46:27 +01:00
|
|
|
|
|
|
|
urlpatterns = [
|
2017-12-30 04:27:05 +01:00
|
|
|
path('', views.home, name='home'),
|
2017-12-26 17:46:27 +01:00
|
|
|
path('admin/', admin.site.urls),
|
2017-12-30 04:27:05 +01:00
|
|
|
path('searchables/', event_views.searchable_list),
|
2018-01-20 20:09:57 +01:00
|
|
|
path('api/places/', event_views.places_list),
|
|
|
|
path('api/countries/', event_views.country_list),
|
|
|
|
path('api/spr/', event_views.spr_list),
|
|
|
|
path('api/cities/', event_views.city_list),
|
2017-12-30 04:27:05 +01:00
|
|
|
|
|
|
|
path('events/', views.events_list, name='events'),
|
|
|
|
path('create-team/', views.create_team, name='create-team'),
|
2018-01-04 05:44:27 +01:00
|
|
|
path('teams/', views.teams_list, name='teams'),
|
2017-12-30 04:27:05 +01:00
|
|
|
path('team/<int:team_id>/', views.show_team, name='show-team'),
|
2018-01-21 18:09:18 +01:00
|
|
|
path('team/<int:team_id>/edit/', views.edit_team, name='edit-team'),
|
2017-12-31 22:54:35 +01:00
|
|
|
path('team/<int:team_id>/create-event/', views.create_event, name='create-event'),
|
2018-01-21 18:09:18 +01:00
|
|
|
path('events/<int:event_id>/edit/', views.edit_event, name='edit-event'),
|
2017-12-30 04:27:05 +01:00
|
|
|
path('events/<int:event_id>/<str:event_slug>/', views.show_event, name='show-event'),
|
2017-12-27 21:00:49 +01:00
|
|
|
|
2018-01-21 05:18:02 +01:00
|
|
|
path('places/', views.places_list, name='places'),
|
|
|
|
path('create-place/', views.create_place, name='create-place'),
|
|
|
|
|
2017-12-27 21:00:49 +01:00
|
|
|
path('oauth/', include('social_django.urls', namespace='social')),
|
2017-12-26 17:46:27 +01:00
|
|
|
]
|