"""slack URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.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.conf.urls import url from django.contrib import admin from django.urls import path from events.views import Events urlpatterns = [ path('admin/', admin.site.urls), url(r'^events/', Events.as_view()), ]
"""who_you_got 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 from django.urls import path from events.views import Events #import the Events View from events import getgames import schedule import time import datetime urlpatterns = [ path('admin/', admin.site.urls), path('events/', Events.as_view()), ] getgames.games()
urlpatterns = [ path("about/", About.as_view()), path("bartenders/", BartenderList.as_view()), path("barplan/", Barplan.as_view(), name="barplan"), path("barplan/shifts.ics", UserBarplan()), path("barplan/shifts/<username>.ics", UserBarplan(), name="user_shifts"), path("barplan/deposit_shifts.ics", UserDepositShifts()), path("barplan/deposit_shifts/<username>.ics", UserDepositShifts()), path("barplan/<username>/", RedirectView.as_view( pattern_name="user_shifts")), # Old URLs, redirect path("prices/", Items.as_view()), path("scanner/", Scanner.as_view()), path("board/", Board.as_view()), path("", Index.as_view()), path("profile/", BartenderInfo.as_view(), name="profile"), path("vote/", Ballots.as_view(), name="ballots"), path("vote/update/", BallotsUpdate.as_view(), name="ballots_update"), path("bartab/", BarTab.as_view(), name="bartab"), path("events/", Events.as_view(), name="events"), path("events.ics", EventFeed(), name="event_feed"), path("login/", Login.as_view(), name="login"), path("login/<email>/<token>/", email_login_view, name="email_login"), path("logout/", logout_view, name="logout"), path("udlejning/", Udlejninger.as_view()), path("udlejningGrill/", UdlejningerGrill.as_view()), path("udlejningProjector/", UdlejningerProjector.as_view()), path("udlejningSpeakers/", UdlejningerSpeakers.as_view()), path("guides/", Guides.as_view(), name="guides"), ]