AssertionError:需要URL名称来解析正确的向导URL django 2,1

时间:2018-12-01 10:57:24

标签: python django url wizard

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,谢谢您的建议

0 个答案:

没有答案