Re: Writing my first view

2011-06-06 Thread bh.hoseini
i used "debug = False" in setting.py, that's why i couldn't see what the real error is because of the page appearance! thank you for your attention, On Jun 6, 5:31 am, Dave Sayer wrote: > Have you followed the whole of the tutorial? > On 6 Jun 2011 07:41, "bahare hoseini" wrote: > > > hi there,

Re: Writing my first view

2011-06-06 Thread Dave Sayer
Have you followed the whole of the tutorial? On 6 Jun 2011 07:41, "bahare hoseini" wrote: > hi there, > i use django vs1.3 > i started editing urls.py to look loke this: > > from django.conf.urls.defaults import * > > > > from django.contrib import admin > > admin.autodiscover() > > > > urlpattern

Writing my first view

2011-06-05 Thread bahare hoseini
hi there, i use django vs1.3 i started editing urls.py to look loke this: from django.conf.urls.defaults import * from django.contrib import admin admin.autodiscover() urlpatterns = patterns('', (r'^polls/$', 'polls.views.index'), (r'^polls/(?P\d+)/$', 'polls.views.detail'),