"""hypercar URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/2.2/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.urls import path
from tickets.views import NextView, WelcomeView, OilView, InflateView, DiagnosticView, ProcessView
from django.views.generic import RedirectView

urlpatterns = [
    path('menu/', WelcomeView.as_view()),
    path('get_ticket/change_oil', OilView.as_view()),
    path('get_ticket/inflate_tires', InflateView.as_view()),
    path('get_ticket/diagnostic', DiagnosticView.as_view()),
    path('processing', ProcessView.as_view()),
    path("next", NextView.as_view())
]
"""hypercar URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/2.2/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.urls import path, re_path
from tickets.views import WelcomeView, menuView, TicketView, ProcessingView, nextView

urlpatterns = [
    path('welcome', WelcomeView.as_view()),
    path("menu", menuView),
    path("processing", ProcessingView.as_view()),
    path("next", nextView),
    re_path(r"^get_ticket/(?P<operation>\w+)$", TicketView.as_view())
]
Beispiel #3
0
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.urls import path
from tickets.views import WelcomeView
from tickets.views import MenuView
from tickets.views import ChangeOilView, InflateTiresView, DiagnosticView
from tickets.views import ProcessingView, NextView

urlpatterns = [
    path('', WelcomeView.as_view(), name='welcome'),
    path('welcome/', WelcomeView.as_view(), name='welcome'),
    path('menu/', MenuView.as_view(), name='menu'),
    path('get_ticket/change_oil/', ChangeOilView.as_view(), name='change_oil'),
    path('get_ticket/inflate_tires/',
         InflateTiresView.as_view(),
         name='inflate_tire'),
    path('get_ticket/diagnostic/', DiagnosticView.as_view(),
         name='diagnostic'),
    path('processing', ProcessingView.as_view(), name='processing'),
    path('next/', NextView.as_view(), name='next'),
]
Beispiel #4
0
"""hypercar URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/2.2/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.urls import path, re_path
from tickets.views import WelcomeView, MenuView, TicketView, ProcessingView, NextView

urlpatterns = [
    path("welcome/", WelcomeView.as_view()),
    path("menu/", MenuView.as_view()),
    re_path("get_ticket/(\w+)", TicketView.as_view()),
    path("processing/", ProcessingView.as_view()),
    path("next/", NextView.as_view())
]
"""hypercar URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/2.2/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.urls import path, re_path
from tickets.views import WelcomeView, MenuPageView, GetTicketView, OperatorView, NextPageView

urlpatterns = [
    re_path('welcome/', WelcomeView.as_view()),
    re_path('menu/', MenuPageView.as_view()),
    re_path('get_ticket/diagnostic/', GetTicketView.as_view()),
    re_path('get_ticket/inflate_tires/', GetTicketView.as_view()),
    re_path('get_ticket/change_oil/', GetTicketView.as_view()),
    re_path('processing', OperatorView.as_view()),
    re_path('next', NextPageView.as_view()),
]
"""hypercar URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/2.2/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.urls import path, re_path
from tickets.views import WelcomeView, MenuPage, GetTicket, ProcessingView, NextView

urlpatterns = [
    path('', WelcomeView.as_view()),
    re_path('menu/', MenuPage.as_view()),
    path('get_ticket/<str:link>', GetTicket.as_view()),
    path('processing', ProcessingView.as_view()),
    path('next/', NextView.as_view())
]