from allauth.account.views import ( LoginView, LogoutView, ) from django.conf import settings from django.urls import include, path from django.contrib import admin from camps.views import * from info.views import * from villages.views import * from program.views import * from sponsors.views import * from teams.views import * from people.views import * from bar.views import MenuView urlpatterns = [ path( 'profile/', include('profiles.urls', namespace='profiles') ), path( 'tickets/', include('tickets.urls', namespace='tickets') ), path( 'shop/', include('shop.urls', namespace='shop') ), path( 'news/', include('news.urls', namespace='news') ), path( 'contact/', TemplateView.as_view(template_name='contact.html'), name='contact' ), path( 'conduct/', TemplateView.as_view(template_name='coc.html'), name='conduct' ), path( 'login/', LoginView.as_view(), name='account_login', ), path( 'logout/', LogoutView.as_view(), name='account_logout', ), path( 'privacy-policy/', TemplateView.as_view(template_name='legal/privacy_policy.html'), name='privacy-policy' ), path( 'general-terms-and-conditions/', TemplateView.as_view(template_name='legal/general_terms_and_conditions.html'), name='general-terms' ), path('accounts/', include('allauth.urls')), path('admin/', admin.site.urls), path( 'camps/', CampListView.as_view(), name='camp_list' ), # camp redirect views here path( '', CampRedirectView.as_view(), kwargs={'page': 'camp_detail'}, name='camp_detail_redirect', ), path( 'program/', CampRedirectView.as_view(), kwargs={'page': 'schedule_index'}, name='schedule_index_redirect', ), path( 'info/', CampRedirectView.as_view(), kwargs={'page': 'info'}, name='info_redirect', ), path( 'sponsors/', CampRedirectView.as_view(), kwargs={'page': 'sponsors'}, name='sponsors_redirect', ), path( 'villages/', CampRedirectView.as_view(), kwargs={'page': 'village_list'}, name='village_list_redirect', ), path( 'people/', PeopleView.as_view(), name='people', ), # camp specific urls below here path( '/', include([ path( '', CampDetailView.as_view(), name='camp_detail' ), path( 'info/', CampInfoView.as_view(), name='info' ), path( 'program/', include('program.urls', namespace='program'), ), path( 'sponsors/', SponsorsView.as_view(), name='sponsors' ), path( 'bar/menu', MenuView.as_view(), name='menu' ), path( 'villages/', include([ path( '', VillageListView.as_view(), name='village_list' ), path( 'create/', VillageCreateView.as_view(), name='village_create' ), path( '/delete/', VillageDeleteView.as_view(), name='village_delete' ), path( '/edit/', VillageUpdateView.as_view(), name='village_update' ), # this has to be the last url in the list path( '/', VillageDetailView.as_view(), name='village_detail' ), ]) ), path( 'teams/', include('teams.urls', namespace='teams') ), path( 'backoffice/', include('backoffice.urls', namespace='backoffice') ), ]) ) ] if settings.DEBUG: import debug_toolbar urlpatterns = [ path('__debug__/', include(debug_toolbar.urls)), ] + urlpatterns