Hi,

I try to access to the URL http://127.0.0.1:8000/personne/liste/ but get
an error that I can't solve. Thanks for your help.

the URL http://127.0.0.1:8000/personne/liste/ head us to the main
urls.py file

--------------------------------------------------
from django.conf.urls.defaults import *

urlpatterns = patterns('',
    # Example:
    # (r'^myblog/', include('myblog.foo.urls')),
    (r'^personne/', include('myblog.personne.urls')),

    # Uncomment this for admin:
    # (r'^admin/', include('django.contrib.admin.urls')),
)
--------------------------------------------------
and then lead us to myblog.personne.urls.py
--------------------------------------------------
# -*- coding: utf-8 -*-

from django.conf.urls.defaults import *
from myblog.personne.views import   personne_list, personne_view,
personne_new, \
                                    personne_edit, personne_delete,
personne_search

urlpatterns = patterns('',
    # Example:
    # (r'^myblog/', include('myblog.foo.urls')),
    (r'^(?P<id>\d+)/$', personne_view),
    (r'^new/$', personne_new),
    (r'^edit/(?P<id>\d+)/$', personne_edit),
    (r'^delete/(?P<id>\d+)/$', personne_delete),
    (r'^search/([A-Za-z]+)/$', personne_search),
    (r'^liste/$', personne_list),
)

But I get this error :
Error while importing URLconf 'myblog.personne.urls': cannot import name
render_to_reponse

Request Method:         GET
Request URL:    http://127.0.0.1:8000/personne/liste/
Exception Type:         ImproperlyConfigured
Exception Value:        Error while importing URLconf 'myblog.personne.urls':
cannot import name render_to_reponse
Exception Location:
/usr/lib/python2.5/site-packages/django/core/urlresolvers.py in
_get_urlconf_module, line 255
Python Executable:      /usr/bin/python
Python Version:         2.5.1

-- 
SunWukong

Linux User #354048
GPG Key available : 0xF4DD0AD2 on keyserver.ubuntu.com

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to