On Jun 27, 8:30 pm, Coulson Thabo Kgathi <zeeco...@gmail.com> wrote: > ok >
Coulsen, This is a far better response. [Code snipped, but it gave me an idea of where you are coming from. ;-] > urlpatterns = patterns('', > # Example: > # (r'^questionSite/', include('questionSite.foo.urls')), > #(r'^questions/(?P<question_id>\d+)/$', 'questions.views.detail'), > # Uncomment the admin/doc line below and add 'django.contrib.admindocs' > #(r'^admin/doc/', include('django.contrib.admindocs.urls')), > # to INSTALLED_APPS to enable admin documentation: > > # Uncomment the next line to enable the admin: > (r'^admin/', include(admin.site.urls)), > ) > > so this gives me a questionnaire but i kind of hard coded the question and i > am not using my own templete but i want to use my own templete, of which i > suppose i will nid to use the views file and may other file so that is what > i am failing to do. I think you've identified the problem. You have 'question.views.details' as your view function, but you haven't supplied the source for it. Which I believe means you _have_ to write it, and the template that goes with it. One thing I would add: from a user-friendliness point of view, it might be better to have the questions in one page, or at most 5. Hitting "Next" 21 times is a turn off for most people. But you know your needs best. Best regards, Peter -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.