Note that there are some explanatory texts on larger screens.

plurals
  1. PO'Manager' object is not callable
    primarykey
    data
    text
    <p>I keep getting this error on my views. I can't work it out as the code is similar to the djangos tutorial just changing the objects name. Here is the code for my views.py: </p> <pre><code>from django.http import HttpResponse from django.template import Context, loader from django.shortcuts import render_to_response from astonomyStuff.attendance.models import Member from astonomyStuff.attendance.models import Non_Member from astonomyStuff.attendance.models import Talk from astonomyStuff.attendance.models import Event_Attendance # Create your views here. def talksIndex(request): latest_talk = Talk.objects().all() return render_to_response('talks/index.html', {'latest_talk': latest_talk}) def viewMembers(request): members_List = Member.objects().all() return render_to_response('members/index.html', {'members_List': members_List}) </code></pre> <p>Then my urls.py looks like this:</p> <pre><code>urlpatterns = patterns('', # Example: # (r'^astonomyStuff/', include('astonomyStuff.foo.urls')), # Uncomment the admin/doc line below and add 'django.contrib.admindocs' # to INSTALLED_APPS to enable admin documentation: # (r'^admin/doc/', include('django.contrib.admindocs.urls')), # Uncomment the next line to enable the admin: (r'^admin/', include(admin.site.urls)), (r'^attendance/$', 'astonomyStuff.attendance.views.talksIndex'), (r'^members/$', 'astonomyStuff.attendance.views.viewMembers'), ) </code></pre> <p>Has any one got any ideas why this error is happening as i did earlier have the talks to work just fine. I can post more code if needed. </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload