Re: URLconf: Invalid syntax when using naming URL patterns

2007-12-13 Thread sector119
Thank you! I miss "url" at the beginning of all patterns :) On 13 Грд, 17:14, "Marty Alchin" <[EMAIL PROTECTED]> wrote: > On Dec 13, 2007 9:58 AM, sector119 <[EMAIL PROTECTED]> wrote: > > > urlpatterns = patterns('django.views.generic', > > (r'^location/$', 'list_detail.object_list', location

Re: URLconf: Invalid syntax when using naming URL patterns

2007-12-13 Thread Marty Alchin
On Dec 13, 2007 9:58 AM, sector119 <[EMAIL PROTECTED]> wrote: > urlpatterns = patterns('django.views.generic', > (r'^location/$', 'list_detail.object_list', location_list_info, > name='locations-location_list'), > ) In order to name your URLpatterns, you'll need to use the url() function. ur

Re: URLconf: Invalid syntax when using naming URL patterns

2007-12-13 Thread yml
Hello, I don't know what line is 13 but it seems to me that for the second urlpatterns should be: """ urlpatterns += patterns( """ Let me know if this help. On 13 déc, 15:58, sector119 <[EMAIL PROTECTED]> wrote: > Hi all! > > When I try to use Naming URL patterns I get error: > Exception Type:

Re: URLconf: Invalid syntax when using naming URL patterns

2007-12-13 Thread sector119
I use django current trunk, if this info is needed. On 13 Грд, 16:58, sector119 <[EMAIL PROTECTED]> wrote: > Hi all! > > When I try to use Naming URL patterns I get error: > Exception Type: ImproperlyConfigured > Exception Value:Error while importing URLconf 'locations.urls': > in