Have you followed the whole of the tutorial? On 6 Jun 2011 07:41, "bahare hoseini" <bhhose...@gmail.com> 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() > > > > urlpatterns = patterns('', > > (r'^polls/$', 'polls.views.index'), > > (r'^polls/(?P<poll_id>\d+)/$', 'polls.views.detail'), > > (r'^polls/(?P<poll_id>\d+)/results/$', 'polls.views.results'), > > (r'^polls/(?P<poll_id>\d+)/vote/$', 'polls.views.vote'), > > (r'^admin/', include(admin.site.urls)), > > ) > > > but when i save it and run http//127.0.0.1:8000/admin/polls , the page can > not be loaded and the errors are irrelevant such as: > > > > File "F:\Program Files\python > 2.7.1\lib\site-packages\django\views\defaults.py", line 30, in server_error > > t = loader.get_template(template_name) # You need to create a 500.html > template. > > > > File "F:\Program Files\python > 2.7.1\lib\site-packages\django\template\loader.py", line 157, in > get_template > > template, origin = find_template(template_name) > > > > File "F:\Program Files\python > 2.7.1\lib\site-packages\django\template\loader.py", line 138, in > find_template > > raise TemplateDoesNotExist(name) > > > , i should mention that i don't forget "python manage.py runserver". > can someone help me please? > > -- > 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. >
-- 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.