On Thu, 2008-06-26 at 08:10 -0700, Bobby Roberts wrote: > Hey - > > i've only included a single line in my urls file as follows: > > urlpatterns=patterns('django.views.generic.simple', > (r'step-1.html', 'direct_to_template', {'template': > 'step1.html'}), > > > This obviously calls my html page. how do i call the view? > >
Add another section, something like that: urlpatterns += patterns('', (r'^whatever/$', 'your_project.your_app.views.DoPaymentDetailForm'), ) But you should really start with the tutorial[1] or the Django Book[2]. The documentation for Django is really outstanding, you'll progress much faster if you do some more reading. [1]: http://www.djangoproject.com/documentation/ [2]: http://www.djangobook.com/ --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---