|
15 | 15 | 2. Add a URL to urlpatterns: path('blog/', include('blog.urls')) |
16 | 16 | """ |
17 | 17 | from django.urls import path |
18 | | -from .views.start import start |
19 | | -from .views.have_you_ever_smoked import have_you_ever_smoked |
20 | | -from .views.date_of_birth import date_of_birth |
21 | | -from .views.responses import responses |
| 18 | +from .views.start import StartView |
| 19 | +from .views.have_you_ever_smoked import HaveYouEverSmokedView |
| 20 | +from .views.date_of_birth import DateOfBirthView |
| 21 | +from .views.responses import ResponsesView |
22 | 22 | from .views.age_range_exit import age_range_exit |
23 | 23 | from .views.non_smoker_exit import non_smoker_exit |
24 | 24 | from .views.your_results import your_results |
25 | | -from .views.height import height |
26 | | -from .views.weight import weight |
27 | | -from .views.sex_at_birth import sex_at_birth |
28 | | -from .views.gender import gender |
29 | | -from .views.ethnicity import ethnicity |
| 25 | +from .views.height import HeightView |
| 26 | +from .views.weight import WeightView |
| 27 | +from .views.sex_at_birth import SexAtBirthView |
| 28 | +from .views.gender import GenderView |
| 29 | +from .views.ethnicity import EthnicityView |
30 | 30 | from .views.education import EducationView |
31 | 31 | from .views.respiratory_conditions import RespiratoryConditionsView |
32 | 32 | from .views.asbestos_exposure import AsbestosExposureView |
33 | 33 | from .views.cancer_diagnosis import CancerDiagnosisView |
34 | 34 | from .views.family_history_lung_cancer import FamilyHistoryLungCancerView |
35 | 35 |
|
| 36 | + |
36 | 37 | urlpatterns = [ |
37 | | - path('start', start, name='start'), |
38 | | - path('have-you-ever-smoked', have_you_ever_smoked, name='have_you_ever_smoked'), |
39 | | - path('date-of-birth', date_of_birth, name='date_of_birth'), |
40 | | - path('height', height, name='height'), |
41 | | - path('weight', weight, name='weight'), |
42 | | - path('sex-at-birth', sex_at_birth, name='sex_at_birth'), |
43 | | - path('gender', gender, name='gender'), |
44 | | - path('ethnicity', ethnicity, name='ethnicity'), |
| 38 | + path('start', StartView.as_view(), name='start'), |
| 39 | + path('have-you-ever-smoked', HaveYouEverSmokedView.as_view(), name='have_you_ever_smoked'), |
| 40 | + path('date-of-birth', DateOfBirthView.as_view(), name='date_of_birth'), |
| 41 | + path('height', HeightView.as_view(), name='height'), |
| 42 | + path('weight', WeightView.as_view(), name='weight'), |
| 43 | + path('sex-at-birth', SexAtBirthView.as_view(), name='sex_at_birth'), |
| 44 | + path('gender', GenderView.as_view(), name='gender'), |
| 45 | + path('ethnicity', EthnicityView.as_view(), name='ethnicity'), |
45 | 46 | path('education', EducationView.as_view(), name='education'), |
46 | 47 | path('respiratory-conditions', RespiratoryConditionsView.as_view(), name='respiratory_conditions'), |
47 | 48 | path('asbestos-exposure', AsbestosExposureView.as_view(), name='asbestos_exposure'), |
48 | 49 | path('cancer-diagnosis', CancerDiagnosisView.as_view(), name='cancer_diagnosis'), |
49 | 50 | path('family-history-lung-cancer', FamilyHistoryLungCancerView.as_view(), name='family_history_lung_cancer'), |
50 | | - path('responses', responses, name='responses'), |
| 51 | + path('responses', ResponsesView.as_view(), name='responses'), |
51 | 52 | path('age-range-exit', age_range_exit, name='age_range_exit'), |
52 | 53 | path('non-smoker-exit', non_smoker_exit, name='non_smoker_exit'), |
53 | 54 | path('your-results', your_results, name='your_results'), |
|
0 commit comments