content_type='text/plain')), path('form/', include('cts_forms.urls')), path('report/', CRTReportWizard.as_view( [ Contact, PrimaryReason, HateCrimesTrafficking, ElectionLocation, WorkplaceLocation, PoliceLocation, CommercialPublicLocation, EducationLocation, LocationForm, ProtectedClassForm, When, Details, Review, ], condition_dict={ '3': show_election_form_condition, '4': show_workplace_form_condition, '5': show_police_form_condition, '6': show_commercial_public_form_condition, '7': show_education_form_condition, '8': show_location_form_condition, }, ), name='crt_report_form'), path('', RedirectView.as_view(pattern_name='crt_report_form',
2. Add a URL to urlpatterns: path('blog/', include('blog.urls')) """ from django.contrib import admin from django.urls import path, include from django.conf import settings from django.conf.urls.static import static from django.views.generic import RedirectView from cts_forms.forms import Contact, Details, ProtectedClassForm from cts_forms.views import CRTReportWizard urlpatterns = [ path('admin/', admin.site.urls), path('accounts/', include('django.contrib.auth.urls')), path('form/', include('cts_forms.urls')), path( 'report/', CRTReportWizard.as_view([ Contact, ProtectedClassForm, Details, # WhatHappened, # Where, # Who, ]), name='crt_report_form'), path('', RedirectView.as_view(pattern_name='crt_report_form', permanent=False)), ] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)