views.py
students = ["farsh","aliyoa","ukam","vikram","robert","Cleeve"]
for student in students:
student = student.title()
print(students)
urls.py
class ListingWizard(LoginRequiredMixin , StaffuserRequiredMixin, NamedUrlSessionWizardView):
# class attribute named : form_list
form_list = (
('listing_data',ListingForm),
('images',ListingImageForm),
('attributes',AttributeListingForm),
)
TEMPLATES = {
'listing_data':'admins/step1.html',
'images':'admins/step2.html',
'attributes':'admins/step3.html'
}
请有人可以帮助我,我正在尝试将向导表单添加到我的django项目中,我不知道如何在django 2.1的新版本中定义其url,谢谢您的建议