1
를 정의되지 않은 이름 'BillingView는'이것은 내 URL입니다 :나가서 설명하자면 NameError :
from views import *
urlpatterns = patterns('',
url(r'^$', BillingView.as_view(), name="index"),
)
이 내 views.py
의 방법입니다 :
class BillingView(BaseCompositeView):
"""
A view that lets you record new billing information. This view includes all
of the forms needed by the users on one page.
"""
# We cannot easily override FormView since this view uses multiple forms
template_name = "billing/base_billing.html"
등
왜 내보기 는 접근 할 수 없습니다?
저는 django 1.1.1을 사용하고 있습니다. 내 urls.py와 views.py는 동일한 결제 응용 프로그램 –
에 있습니다. ** 매우 **있을 것 같지 않습니다. 클래스 기반 제네릭 뷰는 Django 1.3이 출시 될 때까지 소개되지 않았습니다. –
클래스 기반 뷰를 백 포트하지 않는 한 Django 1.1.1 –