我试图从一个视图呈现一个ajax响应,但是我得到一个错误,即视图缺少位置参数。在
这是我收到的错误消息Internal Server Error: /schedules/calendar/2014/10/1/
Traceback (most recent call last):
File "/blahblahblah/django/core/handlers/base.py", line 111, in get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
TypeError: month_view() missing 2 required positional arguments: 'year' and 'month'
这是我的观点
^{pr2}$
这是我的网址.py在from django.conf.urls import patterns, url
from .views import (
CreateSessionView, CreateListingsView, SessionsListView,
month_view, day_view, today_view
)
urlpatterns = patterns('',
url(r'^create-session/$',
CreateSessionView.as_view(), name="create_session"),
url(r'^create-listings/(?P\d+)/$', CreateListingsView.as_view(),
n